Last modified: 2012-11-28 13:56:40 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 T44176, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42176 - Fatal error: Call to a member function getEntityType() on a non-object
Fatal error: Call to a member function getEntityType() on a non-object
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-16 06:31 UTC by Aude
Modified: 2012-11-28 13:56 UTC (History)
5 users (show)

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


Attachments

Description Aude 2012-11-16 06:31:59 UTC
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.
Comment 2 db [inactive,noenotif] 2012-11-18 12:39:56 UTC
(In reply to comment #1)
> https://gerrit.wikimedia.org/r/#/c/33789/

Status Merged

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


Navigation
Links