Last modified: 2014-02-05 14:25:26 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 T53678, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51678 - Parsoid: (Italian versions of) Template:infobox_person messing up with Template:Sister?
Parsoid: (Italian versions of) Template:infobox_person messing up with Templa...
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: ssastry
:
Depends on:
Blocks: ve-nonenglish
  Show dependency treegraph
 
Reported: 2013-07-19 11:57 UTC by Elitre
Modified: 2014-02-05 14:25 UTC (History)
7 users (show)

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


Attachments

Comment 1 James Forrester 2013-07-24 05:46:56 UTC
This looks like a nasty Parsoid bug that I think was fixed last week, where sometimes some templates would get duplicated when re-used. I'm going to tentatively mark this as fixed, but please re-open if it happens again.
Comment 3 Ed Sanders 2013-07-30 12:40:16 UTC
I can reproduce on it.wiki, but pasting the posted HTML into my local Parsoid it looks fine. How up-to-date is the deployment on it.wiki?
Comment 4 Ed Sanders 2013-07-30 12:42:00 UTC
Either way, looks like a Parsoid bug.
Comment 5 Elitre 2013-08-01 13:58:44 UTC
Thanks Ed. FYI, we have found out (sorry, no diff available, the text was a copyvio) that the very same corruption also appears if you don't edit the Template:Bio at all but just change a word in the page (which was Pierre de Fermat on it.wp, featuring both of the templates).
Comment 6 ssastry 2013-08-01 14:53:46 UTC
Thanks Elitre.  Will take a look today.
Comment 7 ssastry 2013-08-02 04:25:55 UTC
This is a baffling bug.  When I take html dumps (after edits) from chrome and serialize it a couple different ways, I dont see the diff at all.  But, when I click on 'Review changes' button, the diff shows up. Tried on http://it.wikipedia.org/wiki/Szil%C3%A1rd_Ign%C3%A1c_Bogd%C3%A1nffy

Will investigate more tomorrow.
Comment 8 ssastry 2013-08-02 17:22:20 UTC
My testing was a little off late y'day night.  But, here is what is going on:

1. Since Parsoid doesn't yet provide a PHP compatible API (bug 48483 tracks this), on template edits, VE fetches new HTML from the mediawiki API whose output differs from Parsoid's, most notably for categories .. Parsoid emits <link..> tags and php parser leaves no trace of them.  So, there is a big chunk of missing output when VE sends Parsoid back this DOM.  Normally, this shouldn't be an issue since Parsoid simply hops over template html and should not even run into this hole.

2. But, Parsoid's DOM-diff has a big where it occasionally descends into transclusion HTML and trips itself up and throws off the dom-diff and inserts a dom-diff deletion marker further downstream in a later template and breaks template continuity which then breaks the serializer.

I'll fix the bug in the dom-diff algorithm (and possibly make the serializer more robust against future dom-diff bugs to ignore deletion markers).  But, we should try and implement 48483 sooner than later so we dont run into other issues because of differing HTML issues.
Comment 9 Gerrit Notification Bot 2013-08-02 17:50:48 UTC
Change 77357 had a related patch set uploaded by Subramanya Sastry:
(Bug 51678) Fixed bug in dom-diff algorithm

https://gerrit.wikimedia.org/r/77357
Comment 10 Gerrit Notification Bot 2013-08-02 20:44:06 UTC
Change 77357 merged by jenkins-bot:
(Bug 51678) Fixed bug in dom-diff algorithm

https://gerrit.wikimedia.org/r/77357
Comment 11 Elitre 2013-08-14 15:49:47 UTC
Will this be added to tomorrow's deployment?
Comment 12 ssastry 2013-08-14 15:51:47 UTC
Parsoid is deployed independently, but yes, on next Parsoid update (by tomorrow), this fix will go out.
Comment 13 Elitre 2013-08-14 15:59:44 UTC
Thanks :)
Comment 14 ssastry 2013-08-14 22:52:48 UTC
Now deploy.  Please verify and close if fixed.
Comment 15 Elitre 2013-08-21 18:16:19 UTC
Yes, great, thank you!!!
Comment 17 James Forrester 2014-02-04 03:53:27 UTC
That's not related.
Comment 18 Elitre 2014-02-05 14:25:26 UTC
Ok, now at bug 60897 then. Thanks.

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


Navigation
Links