https://bugzilla.wikimedia.org/show_bug.cgi?id=54109

       Web browser: ---
            Bug ID: 54109
           Summary: Some Claim GUIDs use lowercase q, others use uppercase
                    Q breaking wbremoveclaims
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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).

-- 
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

Reply via email to