Last modified: 2013-09-10 14:15:00 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 T55894, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53894 - API now uses uppercase ids
API now uses uppercase ids
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Highest blocker (vote)
: ---
Assigned To: Wikidata bugs
https://test.wikidata.org/w/api.php?a...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-07 20:01 UTC by Kunal Mehta (Legoktm)
Modified: 2013-09-10 14:15 UTC (History)
5 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-09-07 20:01:33 UTC
The API has always normalized ids to become lowercase, and because of this bots/scripts have come to depend upon it.

https://test.wikidata.org/wiki/Special:EntityData/Q17.json

https://test.wikidata.org/w/api.php?action=wbgetentities&ids=Q17&format=jsonfm

Both of those now use uppercase ids.
Comment 1 Tpt 2013-09-07 20:06:16 UTC
The Lua API is also affected. This issue affect the 1.22wmf16 version.
Comment 2 Daniel Kinzler 2013-09-09 10:50:35 UTC
This is caused by the decision to get rid of inconsistent use of lowercase and uppercase ids.

Possible solutions:
* change the serializers to force lower case IDs unconditionally.
* or add an option "lowercaseids" to all API modules.

PS: we have prefixed ids in the database in some places. there might also be some potential for breakage there.
Comment 3 Addshore 2013-09-09 10:56:36 UTC
add an option "lowercaseids" to all API modules just seems silly :/

This would require everyone that wants lowercase IDs to change their code anyway, so it would then make more sense for them to change the code to ignore case..
Comment 4 Daniel Kinzler 2013-09-10 10:10:43 UTC
We are working to minimize the impact, but decided to stick with the decision to move to upper case IDs everywhere. Marking wontfix.

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


Navigation
Links