Last modified: 2014-09-07 23:51: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 T72370, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70370 - Calls to ApiParse do not pass a content model, and as such dont always do as expected
Calls to ApiParse do not pass a content model, and as such dont always do as ...
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks: 70187
  Show dependency treegraph
 
Reported: 2014-09-03 23:53 UTC by Erik Bernhardson
Modified: 2014-09-07 23:51 UTC (History)
3 users (show)

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


Attachments

Description Erik Bernhardson 2014-09-03 23:53:21 UTC
Parsoid is expecting that when it sends a bit of wikitext over for parsing, such as <math>e^2</math>, that this will be rendered with the wikitext parser.  Without sending the contentmodel=wikitext parameter mediawiki will choose the content model based on the title, which in the case of Flow topics is not wikitext.

This bug surfaced due to <math> tags failing in Flow.

As suggested i think the easiest fix is just pass an explicit contentmodel=wikitext with the api requests.
Comment 1 Gerrit Notification Bot 2014-09-04 00:12:01 UTC
Change 158294 had a related patch set uploaded by EBernhardson:
Bug: 70370 Explicitly specify content model in PHPParseRequest

https://gerrit.wikimedia.org/r/158294
Comment 2 Gerrit Notification Bot 2014-09-04 14:49:52 UTC
Change 158294 merged by jenkins-bot:
Bug: 70370 Explicitly specify content model in PHPParseRequest

https://gerrit.wikimedia.org/r/158294
Comment 3 Quiddity 2014-09-07 22:44:59 UTC
Patch merged, and I've confirmed <math> now works on beta.wmflabs. I think this can be closed as Resolved?

(test topic at http://en.wikipedia.beta.wmflabs.org/wiki/Topic:S1wutiokkzyvzweq

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


Navigation
Links