Page MenuHomePhabricator

Characters are garbled after a blockquote containing a linked parameter
Closed, ResolvedPublic

Description

The following wikitext:
<blockquote>[[{{{1}}}]]</blockquote>abcdefgh

round-trips to this:
<blockquote>[[{{{1}}}]]</blockquote>ababcdefgh

The "a" and the "b" are somehow being doubled.

If a newline is present after the blockquote, then this:
<blockquote>[[{{{1}}}]]</blockquote>
abcdefgh

becomes this:
<blockquote>[[{{{1}}}]]</blockquote>
a
cdefgh

Now, the "b" is changed to a second newline.


Version: unspecified
Severity: major

Details

Reference
bz67768

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:32 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz67768.

This is a DSR computation issue. See the warning on trying to parse the snippet.

[subbu@earth tests] echo '<blockquote>[[{{{1}}}]]</blockquote>' | node parse
[warning][enwiki/Main_Page] DSR inconsistency: cs/s mismatch for node: BLOCKQUOTE s: 12 ; cs: 10
...

This issue is causing quite a bit of disruption on wiki where user's are accusing others of bad faith editing because of it and harassing about it. As such, I've elevated the priority one notch on this while adding myself to the cc list.

Change 145215 had a related patch set uploaded by Subramanya Sastry:
(Bug 67768) Update TSR when converting invalid wikilinks to plain text

https://gerrit.wikimedia.org/r/145215

Change 145215 merged by jenkins-bot:
(Bug 67768) Update TSR when converting invalid wikilinks to plain text

https://gerrit.wikimedia.org/r/145215

This will go live on Monday once it is rt-tested tonight and deployed Monday 1pm PST.

Now live. Please verify and reopen if problem persists.