Page MenuHomePhabricator

Need -force on scripts/imagetransfer.py to transfer the file from Commons to another wiki
Closed, ResolvedPublicFeature

Description

Commons often hosts a file that is in use but can run into copyright issues and need to be moved to individual wikis, at the moment there is an effective prohibition within the script to move files from Commons as it does its checks and responds with "The image is already shared on commons:commons."

If there is an element of required protection within the script, then can we have it that admins or a specific right is required to allow the flag to be set that allows override.

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Low priority.Nov 9 2020, 12:10 PM
Xqt changed the subtype of this task from "Task" to "Feature Request".

@Billinghurst: that is more difficult than expected; UploadRobot is blocking too and must be rewritten.

@Xqt There seem to be quite a load of blockers within the system to this process, and think that they have been increasing in number, especially more recently. @Jdforrester-WMF may be able to comment or find someone who can.

Upload.py (which I presume use same logic) complains.

Even when you do it as an an administrator to move the image over the existing name for a file at Commons it has to go through a confirmation process. As a Commons admin I can grab all the file and description detail, to a third spot, then delete the file at Commons, however, that sounds arse-about as there are few Commons <=> other wiki admins, especially at non-big wikis.

It may be that we have to go back to whomever rights the Commons and MW logic to stop its rigorous complaining,

@Xqt There seem to be quite a load of blockers within the system to this process, and think that they have been increasing in number, especially more recently. @Jdforrester-WMF may be able to comment or find someone who can.

I'm sorry, I have no context. What blockers? What system? What process? I don't write code for pywikibot (and don't even run it any more), either in a professional or personal capacity, sorry.

Change 697869 had a related patch set uploaded (by Inductiveload; author: Inductiveload):

[pywikibot/core@master] imagetransfer.py: allow images existing in the shared repo

https://gerrit.wikimedia.org/r/697869

Change 697869 merged by jenkins-bot:

[pywikibot/core@master] imagetransfer.py: allow images existing in the shared repo

https://gerrit.wikimedia.org/r/697869