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

[Bug]: obsolete metadata pulled in on new upload

Open mnalis opened this issue 7 months ago • 13 comments

Summary

Upon choosing image, app might ask if it is "Nearby Place Found", and if user confirms, metadata is pulled automatically, which is great.

However if one aborts that upload and start next upload again with multiple pictures, enters new metadata and use "copy to the next items", it looks like it copies the correct (new) metadata, however trying back one finds that incorrect metadata (from previously aborted upload!) is used instead.

See attached video.

Steps to reproduce

  1. upload picture that is nearby location missing picture
  2. when asked "Nearby Place Found", confirm that it is right place
  3. go to next step and abort (cancel) before finishing upload
  4. try fresh upload again
  5. when asked "Nearby Place Found", decline the options

Expected behaviour

no metadata is copied, and all metadata is blank instead

Actual behaviour

upon entering NEW metadata and copying it to all pictures, it is ignored and instead metadata from step 2. seems to be used

Device name

Samsung Galaxy S23+

Android version

Android 15

Commons app version

6.5.0

Device logs

No response

Screenshots

https://github.com/user-attachments/assets/10610a25-a61c-4a57-9f79-fa0c604b27fa

Would you like to work on the issue?

None

mnalis avatar May 02 '26 16:05 mnalis

hello team, requesting to be assigned this issue.

joeMba avatar Oct 15 '26 04:10 joeMba

hello @nicolas-raoul , got some bit of a setback here

Image yet the app has all permissions

joeMba avatar Oct 16 '26 07:10 joeMba

lemme try running on a different emulator(device)

joeMba avatar Oct 16 '26 07:10 joeMba

@joeMba I think you are using the website instead of the app.

Can you please build and install the app? See https://github.com/commons-app/commons-app-documentation/blob/master/android/Quick-start-guide-for-Developers.md

nicolas-raoul avatar Oct 16 '26 07:10 nicolas-raoul

Ah, or you are using the Wikipedia app instead of the Wikimedia Commons app. They are different. Please follow my link above. Thanks!

nicolas-raoul avatar Oct 16 '26 07:10 nicolas-raoul

Thanks @nicolas-raoul for the timely response. I was actually running the app and followed the documentation, but I can check again microscopically.

However, I have noticed something. Isn't it risky to retrieve the user name already in the database when someone tries to signup

https://github.com/user-attachments/assets/642bc64a-23a9-499a-b9d3-dfcbb46ae58b

joeMba avatar Oct 16 '26 08:10 joeMba

The list of users is not a secret: https://commons.wikimedia.org/wiki/Special:ListUsers

nicolas-raoul avatar Oct 16 '26 08:10 nicolas-raoul

10. The list of users is not a secret: https://commons.wikimedia.org/wiki/Special:ListUsers

OOh, nice! Thanks for the clarity.

joeMba avatar Oct 16 '26 09:10 joeMba

Hello @nicolas-raoul , @mnalis I could not reproduce the issue on my end. I have carefully followed the procedure above. Is it still reproducible from your end @mnalis?

https://github.com/user-attachments/assets/54ed6830-da74-40b0-95c0-f164373469ae

joeMba avatar Oct 16 '26 11:10 joeMba

what would you advise @nicolas-raoul ? Could it be that it was fixed in the recent versions Actually I think this issue is related to this right here . fixing or closing this would mean closing it too.??

joeMba avatar Oct 16 '26 11:10 joeMba

Actually I have not experienced these two issues in a few months. How about you @mnalis ?

nicolas-raoul avatar Oct 17 '26 01:10 nicolas-raoul

15. Actually I have not experienced these two issues in a few months. How about you @mnalis ?

Noted

joeMba avatar Oct 18 '26 05:10 joeMba

Hello @nicolas-raoul , do you think we can mark this as done? Thanks!

joeMba avatar Oct 21 '26 14:10 joeMba