Page MenuHomePhabricator

Calls to ApiParse do not pass a content model, and as such dont always do as expected
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: normal

Details

Reference
bz70370

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:46 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz70370.

Change 158294 had a related patch set uploaded by EBernhardson:
Bug: 70370 Explicitly specify content model in PHPParseRequest

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

Change 158294 merged by jenkins-bot:
Bug: 70370 Explicitly specify content model in PHPParseRequest

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

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