Last modified: 2014-07-30 15:46:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70733, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68733 - VisualEditor: Character duplication in paragraphs following the {{lang-it}} template (and others?)
VisualEditor: Character duplication in paragraphs following the {{lang-it}} t...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-07-31
Assigned To: Editing team bugs – take if you're interested!
:
: 68789 (view as bug list)
Depends on:
Blocks: 68297
  Show dependency treegraph
 
Reported: 2014-07-28 13:08 UTC by Axel Boldt
Modified: 2014-07-30 15:46 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Axel Boldt 2014-07-28 13:08:00 UTC
If a paragraph contains a template, and VisualEditor is used to insert two characters somewhere after the template, and the second character is deleted with backspace, then the first character will be replaced by another character that is duplicated from several positions before that character.

To reproduce, go to 

https://en.wikipedia.org/w/index.php?title=User:AxelBoldt/Sandbox&oldid=618813650&veaction=edit

and change the word "Italian" in the first sentence to "Itaxxlian", then delete the second x. Result: "Itatlian", where the second "t" results from duplication of the first "t". 

This is a consequence of the IPA template earlier in the paragraph. The test file also contains a paragraph without template, where the bug does not occur, and a paragraph with a convert template, where the bug does occur.

Wikipedia is at MW 1.24wmf15 and I'm on Windows 7 running Chrome 36.0.1985.125 m.
Comment 1 Bartosz Dziewoński 2014-07-28 13:17:42 UTC
Maybe related: bug 67862?
Comment 2 James Forrester 2014-07-28 16:51:03 UTC
Yeah, this looks a bit like bug 67862 but less severe.
Comment 3 Axel Boldt 2014-07-28 17:19:20 UTC
The effect seems to occur whenever you insert two or more characters in a paragraph after a template and then delete any one of them. The inserted characters do not have to be contiguous. The distance between first inserted character and duplicated character depends on the template.

I believe VE internally uses the length of the unexpanded template where it should use the length of the expanded template.
Comment 4 Gerrit Notification Bot 2014-07-28 18:53:04 UTC
Change 149920 had a related patch set uploaded by Catrope:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/149920
Comment 5 Gerrit Notification Bot 2014-07-29 00:49:39 UTC
Change 149920 had a related patch set uploaded by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/149920
Comment 6 Gerrit Notification Bot 2014-07-29 10:34:39 UTC
Change 149920 merged by jenkins-bot:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/149920
Comment 7 Gerrit Notification Bot 2014-07-29 14:51:27 UTC
Change 150222 had a related patch set uploaded by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150222
Comment 8 Gerrit Notification Bot 2014-07-29 14:51:35 UTC
Change 150222 abandoned by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150222
Comment 9 Gerrit Notification Bot 2014-07-29 14:58:39 UTC
Change 150224 had a related patch set uploaded by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150224
Comment 10 Gerrit Notification Bot 2014-07-29 14:59:23 UTC
Change 150224 abandoned by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150224
Comment 11 Gerrit Notification Bot 2014-07-29 15:01:43 UTC
Change 150224 restored by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150224
Comment 12 Gerrit Notification Bot 2014-07-29 15:02:59 UTC
Change 150224 abandoned by Jforrester:
Generate only one pair of snowmen for multi-sibling nodes

Reason:
I give up.

https://gerrit.wikimedia.org/r/150224
Comment 13 Gerrit Notification Bot 2014-07-29 17:59:14 UTC
Change 150274 had a related patch set uploaded by Catrope:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150274
Comment 14 Gerrit Notification Bot 2014-07-29 18:32:17 UTC
Change 150224 restored by Catrope:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150224
Comment 15 Gerrit Notification Bot 2014-07-29 18:36:30 UTC
Change 150274 merged by jenkins-bot:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150274
Comment 16 Gerrit Notification Bot 2014-07-29 18:36:40 UTC
Change 150224 merged by jenkins-bot:
Generate only one pair of snowmen for multi-sibling nodes

https://gerrit.wikimedia.org/r/150224
Comment 17 James Forrester 2014-07-29 18:40:36 UTC
*** Bug 68789 has been marked as a duplicate of this bug. ***
Comment 18 James Forrester 2014-07-29 19:09:22 UTC
Should be now fully fixed in master; deployment to production scheduled for 4 hours' time.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links