Last modified: 2014-01-15 15:25:16 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 T55071, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53071 - about=null entries on <figure> elements (because of dom-fragment reuse)
about=null entries on <figure> elements (because of dom-fragment reuse)
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-19 20:58 UTC by ssastry
Modified: 2014-01-15 15:25 UTC (History)
3 users (show)

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


Attachments

Description ssastry 2013-08-19 20:58:29 UTC
From WP:VE/F page (http://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback&oldid=567413854)

------------------------------
Following a report on frwiki, I tried a simple modification by changing a text into a wikilink. VE messed up the article by duplicating parts (not even complete parts), see [http://fr.wikipedia.org/w/index.php?title=Gen%C3%A8ve&diff=95604102&oldid=95601955 diff]. It seems to be reproducible on this article. --[[User:NicoV|NicoV]] <sup>([[:fr:Discussion Utilisateur:NicoV|Talk on frwiki]])</sup> 15:51, 6 August 2013 (UTC)
------------------------------

A cursory investigation back then revealed that this could be because of incorrect DOM fragment reuse for figures which all had about=null.
Comment 1 ssastry 2013-08-23 16:55:29 UTC
One more instance now reported on itwiki:

1. Diff: https://it.wikipedia.org/w/index.php?title=Trieste&diff=prev&oldid=61046913 (see 2 images duplicated further down)

2. Open https://it.wikipedia.org/w/index.php?title=Trieste&oldid=61038476&veaction=edit in Chrome and dump Parsoid HTML in the console "copy(ve.init.mw.targets[0].originalHtml)" You will see a lot of <figure> tags with about=null
Comment 3 Gerrit Notification Bot 2013-09-04 19:43:41 UTC
Change 82676 had a related patch set uploaded by GWicke:
Bug 53071: Handle about-less images better

https://gerrit.wikimedia.org/r/82676
Comment 4 Gerrit Notification Bot 2013-09-04 20:32:28 UTC
Change 82676 merged by jenkins-bot:
Bug 53071: Handle about-less images better

https://gerrit.wikimedia.org/r/82676
Comment 5 Gabriel Wicke 2013-09-04 21:46:30 UTC
This patch addresses the about="null" issue.

I am however not 100% sure that this is indeed the root cause for bug 53071. A
scenario I can think of is this:

1) getAboutSiblings returned sibling nodes without about attributes
2) for some reason that is unclear to me those were *not* assigned
   about="null" attributes in unpackDOMFragments on reuse
3) the serializer faithfully serialized out the new content


The diffs in
https://it.wikipedia.org/w/index.php?title=Trieste&diff=prev&oldid=61046913
would support this, as the entire image link is duplicated.

The diff in https://it.wikipedia.org/w/index.php?title=Dalmine&oldid=61238456
however looks like an incomplete image duplication. 

There are several figure-related DSR errors when parsing that page of this pattern:

WARNING: DSR inconsistency: cs/s mismatch for node: FIGURE s: 22704; cs: 22817
WARNING: DSR inconsistency: cs/s mismatch for node: FIGURE s: 18478; cs: 18586

Those warnings are still there when parsing the page with fragment reuse
enabled, so this might be a different issue.
Comment 6 ssastry 2013-09-04 22:00:12 UTC
Based on IRC discussions, we figured that there are different bugs that are interaction and producing the same end result -- duplication in some cases.  The Trieste bug could be a result of a bad parse of ''[[Foo|''bar'']]'' and interaction of the about=null issue.  Dalmine seems to be something else.
Comment 7 Dan Andreescu 2013-09-04 22:18:39 UTC
You guys sure you wanted me on the CC for this bug?  I'm just making sure it wasn't another "Dan" :)
Comment 8 ssastry 2013-09-04 22:20:27 UTC
Sorry, I linked the wrong bug which is how you got the email ;-) .. fixing it.
Comment 9 ssastry 2013-09-19 01:22:58 UTC
https://gerrit.wikimedia.org/r/#/c/83216/ fixes the dsr inconsistency warnings  reported in this bug.
Comment 10 Gabriel Wicke 2013-12-03 22:29:54 UTC
Is this still happening in production?
Comment 11 ssastry 2014-01-15 15:25:16 UTC
I am marking this resolved. Haven't seen any reports about this in a while.

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


Navigation
Links