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

       Web browser: ---
            Bug ID: 43177
           Summary: Api query by aisha1 stopped working
           Product: MediaWiki
           Version: 1.21-git
          Hardware: All
               URL: https://commons.wikimedia.org/w/api.php?action=query&a
                    isha1=4E2E2F6EC0CB4964875F2A045DB8531BC8E5ADD7&list=al
                    limages&format=json
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I wanted to upload some images and I noticed the function to check for
duplicate files stopped working. 

When I do a manual query at
https://commons.wikimedia.org/w/api.php?action=query&aisha1=4E2E2F6EC0CB4964875F2A045DB8531BC8E5ADD7&list=allimages&format=json

I get:

{

    "servedby": "srv299",
    "error": {
        "code": "aiinvalidsha1hash",
        "info": "The SHA1 hash provided is not valid"
    }

}

4E2E2F6EC0CB4964875F2A045DB8531BC8E5ADD7 is a valid sha1 hash generated by the
follow python code:

hashObject = hashlib.sha1()
hashObject.update(self.downloadPhoto().getvalue())
base64.b16encode(hashObject.digest())

This used to work. Last successful upload was on the 14th of November
(https://commons.wikimedia.org/wiki/Special:ListFiles/BotMultichillT). I looked
at
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=history;f=includes/api/ApiQueryAllImages.php;h=e6a019460764383891284366d237a0a7c7043138;hb=HEAD
and my assumption is that
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=commitdiff;h=529db96cdc31c5a1870ee0df623f21912a73c9aa
caused this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to