Last modified: 2014-11-17 20:37:10 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 T75526, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73526 - {{#widget}} makes Parsoid worker die
{{#widget}} makes Parsoid worker die
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-17 20:37 UTC by Kelson [Emmanuel Engelhart]
Modified: 2014-11-17 20:37 UTC (History)
3 users (show)

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


Attachments

Description Kelson [Emmanuel Engelhart] 2014-11-17 20:37:10 UTC
The use of the #widget keyword (introduced by https://www.mediawiki.org/wiki/Extension:Widgets) makes Parsoid worker die.

Here for example with a git master (98387c2e8f3e5512045c0f762fca728795ebead0) and this wikicode:

===
{{#widget:foobar}}
===

I get

===
ApiRequest { method: 'POST',
  form: 
   { format: 'json',
     action: 'expandtemplates',
     prop: 'wikitext|categories',
     text: '{{#widget:foobar}}',
     title: 'Main_Page' },
  followRedirect: true,
  uri: 'http://devwiki.wikimedia.org.uk/w/api.php',
  timeout: 30000,
  proxy: undefined,
  strictSSL: true,
  headers: { 'User-Agent': 'Parsoid/0.1', Connection: 'close' } }
[fatal][devwiki/Main_Page?oldid=156] Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
    at peg$c379 (eval at <anonymous> (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:89:38), <anonymous>:1356:61)
    at peg$parseeof (eval at <anonymous> (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:89:38), <anonymous>:14738:12)
    at peg$parsetlb (eval at <anonymous> (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:89:38), <anonymous>:2007:12)
    at peg$parsetoplevelblock (eval at <anonymous> (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:89:38), <anonymous>:1909:12)
    at Object.parse (eval at <anonymous> (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:89:38), <anonymous>:17872:18)
    at PegTokenizer.tokenizeAsync (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:206:24)
    at PegTokenizer._processText (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:180:8)
    at PegTokenizer.process (/var/www/parsoid/lib/mediawiki.tokenizer.peg.js:119:7)
    at ParserPipeline.process (/var/www/parsoid/lib/mediawiki.parser.js:485:21)
    at Object.Util.processContentInPipeline (/var/www/parsoid/lib/mediawiki.Util.js:1112:12)
[warning][master][15113] worker 15465 died (1), restarting.
===

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


Navigation
Links