Last modified: 2014-08-07 12:42:43 UTC
http://en.wikipedia.beta.wmflabs.org/w/index.php?diff=118689&oldid=101159 This took a perfectly normal link like: [[mw:User talk:Whatamidoing (WMF)|on Mediawiki]] and turned it into something completely broken (single brackets instead of double, and space instead of pipe): [mw:User talk:Whatamidoing (WMF) on Mediawiki]
Also, I didn't touch any of those links. I added a space in one paragraph so I could look at the Save dialog, and it broke all of these interwiki links on the entire page.
Ick. Regression?
I cannot reproduce this on http://en.wikipedia.beta.wmflabs.org/w/index.php?title=User:Whatamidoing_(WMF)/Sandbox&oldid=101159 when I try to edit again. However, I can reproduce it locally on the commandline if a data-parsoid flag is removed. [subbu@earth lib] echo '[[mw:User talk:Whatamidoing (WMF)|on Mediawiki]]' | node parse | sed 's/"isIW":true,//g;' | node parse --html2wt [mw:User talk:Whatamidoing (WMF) on Mediawiki] So, it is unclear how this might have happened. Clearly, the original and modified HTML differed on all these links for them to get re-serialized and because of the missing attribute in data-parsoid, the serialization breaks. Could this have been a transient VE bug that clobbered data-parsoid somehow?
Unrelated to the bug report: we'll probably make our link handling code more robust since we can recover most information without the flag being present. This is part of the general link handling cleanup that needs to happen in Parsoid.