Page MenuHomePhabricator

Add possiblity to query oldimage filtered by SHA1 with the API
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz58992

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:28 AM
bzimport set Reference to bz58992.
bzimport added a subscriber: Unknown Object (MLST).

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

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