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.

Pchelolo created this task.Jan 6 2017, 9:29 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 6 2017, 9:29 PM

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 "Normal" 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

Arlolra closed this task as "Resolved".Jan 6 2017, 10:32 PM

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.

Stashbot added a subscriber: Stashbot.

Mentioned in SAL (#wikimedia-operations) [2017-01-24T18:58:07Z] <arlolra> Updated Parsoid to version d000fdb4 (T58846, T154804, T152633)