Page MenuHomePhabricator

When an image is deleted on target wiki, At imagetransfer.py (code upload.py) asks many times: Do you want to ignore? ([y]es, [N]o)
Closed, DuplicatePublic

Description

When an image deleted before on target wiki imagetransfer.py asks many times: Do you want to ignore? ([y]es, [N]o)

If you write y it will continue aking also it will upload new revetions on image page!


Version: core-(2.0)
Severity: normal

Details

Reference
bz71400

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:46 AM
bzimport set Reference to bz71400.
bzimport added a subscriber: Unknown Object (????).

What do you mean with the last sentence? Is it always the same file and it looks like it's stuck in an endless loop but still upload it every time?

It will remean on endless asking loop if you type y it will continue the loop also upload if you type n it will break and stop the loop.

finally the image is uploaded as many as you typed yes :)

It will remain on endless asking loop if you type y it will continue the loop also upload if you type n it will break and stop the loop.

finally the image is uploaded as many as you typed yes :)

Okay this sounds interesting, I've to take a look later, but it sounds like the warning is always present even when you say “ignore warnings”.

May be line 318 at upload.py should cause this bug

gerritadmin wrote:

Change 164052 had a related patch set uploaded by XZise:
[FIX] Support Python 3 uploads and ignore warnings

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

This is probably a dup of bug 58907

I don't see a difference, both are happening because the warnings are emitted even though we tell the MediaWiki API it should ignore them (although this isn't necessarily a bug of the MediaWiki API as the upload succeeds).

  • This bug has been marked as a duplicate of bug 58907 ***