https://bugzilla.wikimedia.org/show_bug.cgi?id=54490
Web browser: ---
Bug ID: 54490
Summary: if parsoid is down, Flow throws misleading exception
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: Flow
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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
:-)
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l