Last modified: 2013-09-18 15:43:09 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 T56109, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54109 - Some Claim GUIDs use lowercase q, others use uppercase Q breaking wbremoveclaims
Some Claim GUIDs use lowercase q, others use uppercase Q breaking wbremoveclaims
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:
  Show dependency treegraph
 
Reported: 2013-09-13 23:11 UTC by Kunal Mehta (Legoktm)
Modified: 2013-09-18 15:43 UTC (History)
4 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-09-13 23:11:38 UTC
Looking at https://test.wikidata.org/w/api.php?action=wbgetentities&ids=Q17&format=jsonfm, some claim GUIDs are starting with an uppercase Q, others use lowercase Q.

Trying to remove two claims using different cases will throw an error:

Request (via APISandbox): summary=testing%20bug&token=TOKEN&claim=q17%245559fec3-49b7-2160-88bd-d5c5447bb1fb%7CQ17%243273c6cf-4355-f34c-f212-28d2ff40fe57

{
    "servedby": "mw1148",
    "error": {
        "code": "invalid-guid",
        "info": "All claims must belong to the same entity"
    }
}


If you try to uppercase an id that is lowercase or vice versa, you'll get:

{
    "servedby": "mw1195",
    "error": {
        "code": "invalid-guid",
        "info": "Claim with guid Q17$5559fec3-49b7-2160-88bd-d5c5447bb1fb not found"
    }
}

Either some kind of maintenance script needs to be run uppercasing all the ids (better), or wbremoveclaims should be patched to ignore case (easier).
Comment 1 tobias.gritschacher 2013-09-16 11:26:04 UTC
Related change (merged): https://gerrit.wikimedia.org/r/84298

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


Navigation
Links