https://bugzilla.wikimedia.org/show_bug.cgi?id=42176
Web browser: ---
Bug #: 42176
Summary: Fatal error: Call to a member function getEntityType()
on a non-object
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Lowercase prefixed ids, such as q2454 work just fine but you get a fatal error
if you request an entity with an uppercase prefix in wbgetentities:
Fatal error: Call to a member function getEntityType() on a non-object in
/var/www/wikidata-test-repo.wikimedia.de/w/extensions/Wikibase/repo/includes/api/ApiGetEntities.php
on line 107
http://wikidata-test-repo.wikimedia.de/w/api.php?action=wbgetentities&ids=Q2454&format=json
We ought to be nicer and I think allow uppercase prefix.
At very minimum show a nicer error and tells the api user to provide a
lowercase prefix, but don't think that's a very nice solution and would prefer
we not be case insensitive here.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l