Page MenuHomePhabricator

TypeError in parsoid gallery module
Closed, ResolvedPublic

Description

There's a low-rate error logs in RESTBase logs related to some crash in Parsoid code. Log example:

Request URI: /ca.wikipedia.org/v1/transform/html/to/wikitext/Pisa_daurada
Error stack:

Cannot read property 'caption' of undefined
TypeError: Cannot read property 'caption' of undefined
    at Object.<anonymous> (/srv/deployment/parsoid/deploy-cache/revs/465f9c47ebefadc71a5f38b19e57e3ea820d3bc3/src/lib/ext/Gallery/index.js:308:24)

Unfortunately we don't know what content was provided in the transform POST request.

Event Timeline

Change 331081 had a related patch set uploaded (by Arlolra):
T154804: Serialize gallery without attrs in data-mw

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

Arlolra triaged this task as Medium priority.Jan 6 2017, 10:16 PM

Change 331081 merged by jenkins-bot:
T154804: Serialize gallery without attrs in data-mw

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

Unfortunately we don't know what content was provided in the transform POST request.

@Pchelolo Btw, that page was created with ContentTranslation so maybe something to do with translating a gallery? Just a thought.

@Arlolra No idea to be honest, I lack context here. Anyway, let's hope this doesn't occur any more.