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

       Web browser: ---
             Bug #: 37376
           Summary: Include older file versions when listing allimages
                    with a given SHA1
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Before uploading a file, it's very useful to be able to check if the file has
already been uploaded using the SHA1 of the file:

http://commons.wikimedia.org/w/api.php?action=query&list=allimages&format=jsonfm&ailimit=10&aisha1=babc742b02e560578d90d676dc6c9704ad773191

But if the file is then replaced by a new version, e.g. after cropping or
color-correction, searching for the SHA1 of the original version returns no
results. In the example above, there are two versions of the file:

http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&format=jsonfm&iiprop=sha1&iilimit=10&titles=File%3AAmundsen-in-ice.jpg

but searching for the SHA1 of the older version gives no results. When using
SHA1 to check if a file has been uploaded before or not, it would be most
useful to also include results from older versions.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
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