Last modified: 2013-12-05 05:07:19 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 T56490, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54490 - Flow: misleading exception is thrown if the parsoid service is down
Flow: misleading exception is thrown if the parsoid service is down
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 05:49 UTC by spage
Modified: 2013-12-05 05:07 UTC (History)
4 users (show)

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


Attachments

Description spage 2013-09-24 05:49:07 UTC
If the parsoid service is down (`sudo service parsoid stop`, or update extension/Parsoid and forget/fail `npm install`), then viewing flow pages fails with exception

   Parser only supports wikitext to HTML conversion

   Backtrace:

   #0 /srv/mediawiki/extensions/Flow/includes/ParsoidUtils.php(24): Flow\ParsoidUtils::parser('html', 'wikitext', '<p>It's a long ...')

This is true, but it masks the real problem that parsoid has to work, and didn't.  ParsoidUtils::convert has a try-catch block around using parsoid, and if that fails it will fall back to using parser. It would be helpful for wiki operators if the exception message included the parsoid failure, e.g.
   Parser only supports wikitext to HTML conversion (and parsoid earlier failed with exception "VisualEditor is unavailable")

Now that I've figured out what's going on, this has become a low-priority bug :-)
Comment 1 spage 2013-09-27 19:31:07 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/264
Comment 2 Erik Bernhardson 2013-12-05 05:07:19 UTC
https://gerrit.wikimedia.org/r/#/c/92633/

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


Navigation
Links