commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.01k stars 1.2k forks source link

[Bug]: Commons app not showing pictures uploaded via web #5689

Open mnalis opened 5 months ago

mnalis commented 5 months ago

Summary

I mostly upload images via Commons app, but sometimes I do it via web interface on my desktop via this webpage: https://commons.wikimedia.org/wiki/Special:UploadWizard

However, Commons app does not seem to show those uploads (on main page, or via Hamburger menu / Username / Contributions), instead of only showing the pictures uploaded via Commons app. Even when I try to "swipe down" to try to refresh the list of pictures, or enable/disable limited connection mode in attempt to get list of contributions to "sync".

That is, needless to say, highly confusing, as then I imagine I did not upload that pictures at all...

Note: I'm lately also experiencing:

if that might be related? I'm note 100% sure, but I think that it updated automatically correctly few months back (at least I still seem to see some older pictures in the Commons app that were uploaded e.g. in November 2023 via web interface. But the new ones in last week or two do not seem to get into the app)

Steps to reproduce

  1. Be logged in the Commons app
  2. Have some pics uploaded via Commons app
  3. note the list of Contributions on main screen in Commons app
  4. upload some pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard
  5. open Commons app again and check list of contributions -- it didn't change; i.e. it does not show new contributions even if app is restarted or one tries to refresh...

Expected behaviour

after I upload some pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard, they should be visible in Commons app too (at least after app restart / refresh).

Actual behaviour

pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard are not visible in Commons app.

Device name

Samsung Galaxy S23+

Android version

Android 14

Commons app version

4.2.1~14b6c455b (latest F-droid)

Device logs

CommonsAppLogs2.zip

Screen-shots

note that that yellow circle pic (Turning marker on Jarun.jpg) is missing in Commons app display, while it is visible on my commons web page.

https://github.com/commons-app/apps-android-commons/assets/156656/8f54ce13-45f7-4653-8061-5b0fa811da6f

Would you like to work on the issue?

Prefer not

RitikaPahwa4444 commented 5 months ago

I'm not sure if this has started happening recently, I remember seeing some requests in the Play Store reviews as well. For instance, this is from March 2023 (this was for tablets, but we use the same logic I believe):

When I upload a file from computer, I can't see the updated file from here.

RitikaPahwa4444 commented 5 months ago

Also, does some sort of workaround like the one suggested here work? Some observations like the ones shared here might help in fixing this bug too.

mnalis commented 5 months ago

Also, does some sort of workaround like the one suggested https://github.com/commons-app/apps-android-commons/issues/5131#issuecomment-1368408843 work?

Yes: logging out, and then logging back in makes the web contributions appear in the Commons app.

mnalis commented 5 months ago

I can confirm that bug is still present in latest f-droid release (5.0.1~af028cbdd) on Android 14 (OneUI 6.1), Samsung Galaxy S23+

RitikaPahwa4444 commented 3 months ago

While signing out and then signing in again helps load the images from web, interestingly, Commons treats the images uploaded via web and app wizard differently. Even though I'd uploaded this picture via web, I didn't get any warning that the picture exists already while uploading from the app (it shows up in my contributions list on the app because of the workaround I'd followed). The picture got uploaded again, and is still not showing as a duplicate.

mnalis commented 3 months ago

I didn't get any warning that the picture exists already while uploading from the app

@RitikaPahwa4444 you should probably best open that as a separate issue (mentioning this one) as it seems a different problem entirely. Without looking at the source, I'd guess that either:

rohit9625 commented 2 weeks ago

I tried uploading a picture from Web Upload Wizard and the images updated successfully on the app. However, I uploaded it from the mobile browser rather than my computer. Are you still facing the same issue @mnalis?