MantisBT - TestLink
View Issue Details
0008096TestLinkTest Spec. - Test Case Stepspublic2017-10-05 11:562019-07-01 09:13
olivier_houdas 
fman 
normalblockalways
closedfixed 
1.9.14 (2015 Q3) 
 
MySQL
Chrome 61
READY FOR TESTING
0008096: Test case becomes blank after copy/pasting in Chrome
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.
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
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;">


<input name="Validation42" type="CHECKBOX" />toto


</body>
(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.
No tags attached.
Issue History
2017-10-05 11:56olivier_houdasNew Issue
2017-10-05 12:02olivier_houdasNote Added: 0026895
2017-10-07 08:35fmanNote Added: 0026900
2017-10-07 08:35fmanAssigned To => fman
2017-10-07 08:35fmanStatusnew => feedback
2017-10-09 09:46abIngNote Added: 0026904
2017-10-09 10:24olivier_houdasNote Added: 0026905
2017-10-09 10:24olivier_houdasStatusfeedback => assigned
2017-10-09 13:00olivier_houdasNote Added: 0026906
2019-07-01 08:15olivier_houdasNote Added: 0028981
2019-07-01 09:13fmanNote Added: 0028982
2019-07-01 09:13fmanQA Team - Task Workflow Status => READY FOR TESTING
2019-07-01 09:13fmanStatusassigned => closed
2019-07-01 09:13fmanResolutionopen => fixed

Notes
(0026895)
olivier_houdas   
2017-10-05 12:02   
This is also linked to 0007898, but brings reproduceable steps.
(0026900)
fman   
2017-10-07 08:35   
get latest code from github, do fresh install, retest & provide feedback.
anyway steps are not intended to have inside HTML controls => avoid
(0026904)
abIng   
2017-10-09 09:46   
@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.
(0026905)
olivier_houdas   
2017-10-09 10:24   
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.
(0026906)
olivier_houdas   
2017-10-09 13:00   
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.
(0028981)
olivier_houdas   
2019-07-01 08:15   
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.
(0028982)
fman   
2019-07-01 09:13   
Thanks a lot for the feedback
best regards