apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

[Bug]: Upload says it fails, despite uploading and appearing in the list

Open addshore opened this issue 3 years ago • 3 comments

Summary

Any file I upload via the commons app will currently say that it has failed. However the image will be uploaded and edits after the upload will also happen.

Steps to reproduce

Upload an image Enter data about the image Wait for the upload to run

Expected behaviour

Only 1 entry in the list for the image, and it shows that the upload has succeeded.

Actual behaviour

Duplicate entry in the list. One of which says upload failed

Device name

Motorola G9 plus

Android version

Android 11

Commons app version

4.0.3~23c474b06

Device logs

No response

Screen-shots

Screenshot_20220823-153642

Would you like to work on the issue?

No response

addshore avatar Aug 23 '22 14:08 addshore

That often happens to me as well, however I have not found a 100% sure way to reproduce the problem. Does anyone know a 100% sure way to reproduce the problem? That would help developers.

nicolas-raoul avatar Sep 05 '22 07:09 nicolas-raoul

I actually had a few in the past days that suceeded just fine, but its now gone back to failing. I believe (maybe) that I logged out and in to resolve https://github.com/commons-app/apps-android-commons/issues/5036 for myself, and that also made this issue go away for a bit. But now it is back.

If I had to guess, but have no easy way to check, one of the many API calls that happens during an upload process probably returns some unexpected response? and the app then thinks it fails? but also, its already got far enough to have uploaded the image, hence it appears in the list.

addshore avatar Sep 05 '22 11:09 addshore

I often feel that way too (not always). I suspect the following: if file name and description are identical, it comes to the problem described see here: https://commons.wikimedia.org/wiki/File:20221014_xl_0705-Commons-App-Error.png

OpenGreenStreet avatar Oct 15 '22 05:10 OpenGreenStreet

This issue was fixed and a release is available. Is it still happening? If yes, please reopen, thanks! :-)

nicolas-raoul avatar Jan 13 '24 10:01 nicolas-raoul