Page MenuHomePhabricator

Citoid / citoid integration with VE is emitting data-mw for a template arg that is not compliant with the Parsoid DOMspec
Closed, ResolvedPublic1 Estimated Story Points

Description

See reports here: https://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback#HTTP_503_errors

  • Repeat the steps, but after you open the save dialog, dump the HTML output (how to here: https://www.mediawiki.org/wiki/Parsoid/Debugging#Dumping_HTML_DOM_before_save_in_VE)
  • This HTML crashes the currently deployed version of Parsoid.
  • You will notice that the issn parameter for the transclusion has {"wt": [...]} instead of {"wt": ".."} .. i.e. Parsoid is receiving an array containing a string instead of a string for the wt parameter.

https://gerrit.wikimedia.org/r/#/c/192349/ is a fix in Parsoid so the serializer doesn't crash if a non-string parameter is passed in (it also logs an error event), but this should be fixed in citoid/VE. We'll try to get this fix deployed to Parsoid as part of the regularly scheduled Parsoid deploy for this afternoon.

Event Timeline

ssastry assigned this task to Mvolz.
ssastry raised the priority of this task from to High.
ssastry updated the task description. (Show Details)
ssastry added projects: Citoid, VisualEditor.
ssastry subscribed.
ssastry set Security to None.
ssastry updated the task description. (Show Details)
Mvolz moved this task from Service to Extension on the Citoid board.

This is a problem in the user gadget, not the extension.

Mvolz lowered the priority of this task from High to Low.

Eh, on second thought, this was ultimately caused by a change to the MWDeprecated format that citoid still supports- (although maybe not for much longer) so I'll go ahead and fix that in the citoid service to be back to the way it was.

Change 193575 had a related patch set uploaded (by Mvolz):
Fix: Don't convert ISSN/ISBN in MWDeprecated

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

Change 193575 merged by jenkins-bot:
Fix: Don't convert ISSN/ISBN in MWDeprecated

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

Jdforrester-WMF subscribed.

Fixed; will need a service update to be fixed in production, though.

Once deployed, please update T90479 so we know to clean up Parsoid code.