|Anonymous | Login | Signup for a new account||2019-07-18 12:09 UTC|
|Main | My View | View Issues | Change Log | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008096||TestLink||Test Spec. - Test Case Steps||public||2017-10-05 11:56||2019-07-01 09:13|
|Product Version||1.9.14 (2015 Q3)|
|Fixed in Version|
|Summary||0008096: Test case becomes blank after copy/pasting in Chrome|
|Description||While editing a TC step, we copy/paste some formatted HTML inside the step.|
After saving it, the TC is not editable anymore.
In the DB, we can check the saved HTML, and see that it is invalid, containing a <body id="cke_pastebin" ... </body> at the end.
The issue happens only in Chrome.
|Steps To Reproduce||1. Open an existing TC in Chrome|
2. Click on a step containing text
3. Copy a checkbox from one displayed in an HTML page, paste it into your step, add custom text behind it
4. Save: it works
5. Copy your checkbox + text, paste it below in the same step
6. Save: the content of the step becomes blank, and if you refresh the TC page, it is not displayed at all anymore
|Additional Information||In the saved HTML ("actions" column of the tcsteps table), we can see that some HTML was added by CKEditor at the end of the step's text, and screws up the HTML conformity:|
<body id="cke_pastebin" style="position: absolute; top: 52px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
(if "<input name="Validation42" type="CHECKBOX" />toto" was the copied/pasted text)
This behaviour is probably the issue described at the end of Mantis 0007539.
|Tags||No tags attached.|
|QA Team - Task Workflow Status||READY FOR TESTING|
|This is also linked to 0007898, but brings reproduceable steps.|
get latest code from github, do fresh install, retest & provide feedback.
anyway steps are not intended to have inside HTML controls => avoid
@olivier_houdas: I treid to reproduce it according to your description and I cannot: the cke_pastebin is not created. Please describe it in more details with a very concrete example what should be typed and where. Add screenshots please.
For a long time I try to reproduce this issue that my users report recurrently.
I have the patched version from github, but AFAIK it does not fix the probleme completely: It removes the effect of empty page but it keeps the garbage in the text.
Another way to get the HTML screwed up is to copy/paste from another step: see my screenshot attached.
Note: you need to select from below the line (see the position of my mouse pointer on the screenshot), otherwise you actually enter the edit mode of the step you'd like to copy from.
This case does not result in the <body id="cke_pastebin"> tag added, but the step link attached to the copy/pasted text does generate incorrect HTML.
I will get a Testlink 1.9.16-r8 later today from my network admin, wil keep you informed of reproduction on the latest version.
So I got 1.9.16-r8 fresh (using a docker image).
The first steps to reproduce now work fine (that is, when pasting, it rips off the checkbox, whereas it was leaving it when pasting in 1.9.14).
However, the second way to reproduce that I indicated in my previous note above (copy/pasting from another step) still leads to an error page. This works in Firefox 54.
FYI, I tried the steps again with Chrome 75 and Testlink 1.9.19, and now, pasting a checkbox in a step pastes plain text.
So the issue doesn't exist in Testlink 1.9.19 and the current version of Chrome anymore.
Thanks a lot for the feedback
|2017-10-05 11:56||olivier_houdas||New Issue|
|2017-10-05 12:02||olivier_houdas||Note Added: 0026895|
|2017-10-07 08:35||fman||Note Added: 0026900|
|2017-10-07 08:35||fman||Assigned To||=> fman|
|2017-10-07 08:35||fman||Status||new => feedback|
|2017-10-09 09:46||abIng||Note Added: 0026904|
|2017-10-09 10:24||olivier_houdas||Note Added: 0026905|
|2017-10-09 10:24||olivier_houdas||Status||feedback => assigned|
|2017-10-09 13:00||olivier_houdas||Note Added: 0026906|
|2019-07-01 08:15||olivier_houdas||Note Added: 0028981|
|2019-07-01 09:13||fman||Note Added: 0028982|
|2019-07-01 09:13||fman||QA Team - Task Workflow Status||=> READY FOR TESTING|
|2019-07-01 09:13||fman||Status||assigned => closed|
|2019-07-01 09:13||fman||Resolution||open => fixed|
|Copyright © 2000 - 2019 MantisBT Team|