Last modified: 2014-06-30 13:35:53 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 T64495, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62495 - Format errors consistently in claim html
Format errors consistently in claim html
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=13 s=2014-05-20
:
Depends on: 65441 63299 63364 63375
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-10 17:01 UTC by Aude
Modified: 2014-06-30 13:35 UTC (History)
4 users (show)

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


Attachments

Description Aude 2014-03-10 17:01:01 UTC
We had uncaught exceptions on pages with invalid properties (see bug 61913). We hotfixed that in the branch.  

That particular case was due to importing an item, which we really don't support, but may occur in other situations.  If it occurs, then the entire item does not render.

The code in master is quite ugly for how it handles displaying errors to the user and is totally inconsistent from the JS UI.  

To do a proper fix in master, a bit more cleanup of this code is needed. 

(side effect is maybe we can get rid of some of the error formatting code in JS and just use what php generates)
Comment 1 Jeroen De Dauw 2014-03-20 15:22:24 UTC
> pages with invalid properties

Define "invalid properties"
Comment 2 Aude 2014-03-20 15:58:47 UTC
@jeroen e.g. a mismatch of commons media data type (value) with a wikibase entity id property

which apparently can happen per bug 62425 (and perhaps other ways)
Comment 4 Gerrit Notification Bot 2014-03-26 06:29:42 UTC
Change 120530 had a related patch set uploaded by Tobias Gritschacher:
Handle InvalidArgumentException in ClaimHtmlGenerator

https://gerrit.wikimedia.org/r/120530
Comment 5 Gerrit Notification Bot 2014-03-26 17:42:49 UTC
Change 120530 merged by jenkins-bot:
Handle InvalidArgumentException in ClaimHtmlGenerator

https://gerrit.wikimedia.org/r/120530
Comment 6 Gerrit Notification Bot 2014-04-01 09:12:29 UTC
Change 121678 had a related patch set uploaded by Aude:
Use DataValueMismatchException for Snak formatting [WIP]

https://gerrit.wikimedia.org/r/121678
Comment 7 Aude 2014-04-11 13:09:38 UTC
needs to use mismatch exception consistently in more of the formatters (in data values and to-be-created EntityIdValue formatters)

also needs handling in diff formatting.
Comment 8 Gerrit Notification Bot 2014-05-02 11:52:00 UTC
Change 121678 abandoned by Aude:
Use MismatchingDataValueTypeException for Snak formatting

https://gerrit.wikimedia.org/r/121678
Comment 9 Aude 2014-05-06 08:14:24 UTC
see https://gerrit.wikimedia.org/r/#/c/131665/
Comment 10 Aude 2014-05-19 17:03:41 UTC
remaining issues are that data type mismatch and undeserializable value errors are formatted inconsistently vs. how they are done in the js code, and don't have any css to indicate they are errors.

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


Navigation
Links