Last modified: 2013-03-17 01:02:22 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 T39376, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37376 - Include older file versions when listing allimages with a given SHA1
Include older file versions when listing allimages with a given SHA1
Status: RESOLVED DUPLICATE of bug 21345
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-06 17:35 UTC by Dan Michael Heggø
Modified: 2013-03-17 01:02 UTC (History)
6 users (show)

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


Attachments

Description Dan Michael Heggø 2012-06-06 17:35:59 UTC
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.
Comment 1 db [inactive,noenotif] 2013-03-17 01:02:22 UTC

*** This bug has been marked as a duplicate of bug 21345 ***

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


Navigation
Links