Last modified: 2013-06-26 13:56:57 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 T51241, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49241 - Handle formatting failures gracefully in #property parser function
Handle formatting failures gracefully in #property parser function
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks: 48938
  Show dependency treegraph
 
Reported: 2013-06-06 10:02 UTC by Daniel Kinzler
Modified: 2013-06-26 13:56 UTC (History)
2 users (show)

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


Attachments

Description Daniel Kinzler 2013-06-06 10:02:36 UTC
The #property parser function needs to handle different error cases gracefully (malformed value, unknown property, etc). In case of error, it should return an empty string (so the output can be used in conditionals), but attach a warning to the ParserOutput object, which can then be rendered somewhere on the page.
Comment 1 Daniel Kinzler 2013-06-26 13:50:40 UTC
Fixed in https://gerrit.wikimedia.org/r/#/c/67432/

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


Navigation
Links