Last modified: 2013-06-19 22:33:23 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 T51655, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49655 - DSR on DOM-based template expansions is buggy
DSR on DOM-based template expansions is buggy
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
DOM (Other open bugs)
unspecified
All All
: High major
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks: 49615
  Show dependency treegraph
 
Reported: 2013-06-16 21:22 UTC by ssastry
Modified: 2013-06-19 22:33 UTC (History)
3 users (show)

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


Attachments

Description ssastry 2013-06-16 21:22:03 UTC
The reason for dirty diffs in infoboxes and other templates being seen currently on en-wp VE edits is because of incorrect DSR on reused template expansions.

Ex:

1. dsr":[2076,2080,2,2] for the infobox on en:Libreoffice
2. dsr":[878,882,2,2] for the infobox on en:Bleak House

This then marks the infobox dirty during serialization (although not sure why it should if the same cached html (with buggy dsr) is used by the serializer -- so, maybe something is off there as well) which causes it to be serialized via the regular serializer -- which then normalizes whitespace, etc.

NOTE: Ignoring data-parsoid attribute during dom-diff would cause more problems since the incorrect DSR values would be used to return original wikitext which would have broken serialize WT more seriously.

Related: we need a way of testing this functionality as well.
Comment 1 Gerrit Notification Bot 2013-06-17 15:58:21 UTC
Related URL: https://gerrit.wikimedia.org/r/69119 (Gerrit Change I0fb2419e6e303e715e85e5c0d91d8cefd63e5c42)
Comment 2 Gerrit Notification Bot 2013-06-17 16:51:48 UTC
https://gerrit.wikimedia.org/r/69119 (Gerrit Change I0fb2419e6e303e715e85e5c0d91d8cefd63e5c42) | change APPROVED and MERGED [by jenkins-bot]
Comment 3 ssastry 2013-06-17 17:30:31 UTC
Related patch: https://gerrit.wikimedia.org/r/#/c/69125/ 

This addresses the comment "... although not sure why it should if the same cached html (with buggy dsr) is used by the serializer -- so, maybe something is off there as well ...." above.

Once these fixes are tested in rt testing and deployed in production, we should verify that the dirty diffs are fixed and resolve this bug.
Comment 4 Gerrit Notification Bot 2013-06-17 21:54:38 UTC
Related URL: https://gerrit.wikimedia.org/r/69254 (Gerrit Change I6c047ac01bb99c8cd793fbd01db5777f560f492b)
Comment 5 Gerrit Notification Bot 2013-06-17 22:04:02 UTC
https://gerrit.wikimedia.org/r/69254 (Gerrit Change I6c047ac01bb99c8cd793fbd01db5777f560f492b) | change APPROVED and MERGED [by jenkins-bot]
Comment 6 Gabriel Wicke 2013-06-17 22:30:42 UTC
Fixed in production.
Comment 7 Gerrit Notification Bot 2013-06-19 22:33:23 UTC
Related URL: https://gerrit.wikimedia.org/r/69597 (Gerrit Change I32c511d05d62dd31bb19fca21aff792ddc422331)

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


Navigation
Links