Last modified: 2013-12-28 20:21:54 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 T60992, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58992 - Add possiblity to query oldimage filtered by SHA1 with the API
Add possiblity to query oldimage filtered by SHA1 with the API
Status: RESOLVED DUPLICATE of bug 21345
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-27 15:24 UTC by Rainer Rillke @commons.wikimedia
Modified: 2013-12-28 20:21 UTC (History)
5 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2013-12-27 15:24:22 UTC
Original bug title: Add possiblity to query oldimage filtered by SHA1 with the API

where "oldimage" is a reference to the according database table

In an ideal world, there would be one method that tells me whether a file with a given sha1 was ever on a repo, returning the title where it was seen last.

Currently I am firing 3 requests; 2 against the mw API and 1 against my toollabs account at https://commons.wikimedia.org/w/index.php?title=Commons:User_scripts/File_Analyzer&withJS=MediaWiki:FileAnalyzer.js for each query. As you may already suspect, I'd like to replace the one to my labs account with one to the mw API.

This is useful for detecting copyright violations, [[WP:Sock puppetry]] and much more.
Comment 1 db [inactive,noenotif] 2013-12-28 20:09:22 UTC
Sounds like bug 21345 or is there a different, because you want one api module for looking up in three database tables?

At the moment you can combine the both searches in one request because list= is a multi param:

action=query&list=allimages|filearchive&fasha1=...&aisha1=...
Comment 2 Rainer Rillke @commons.wikimedia 2013-12-28 20:21:54 UTC
(In reply to comment #1)
How stupid of mine. I know there was something. Don't know why it didn't show in search.

Thanks for the hint, I am going to implement this right now!

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