Skip to content

The app erroneously shows successfully uploaded images as "Failed"  #5280

Closed
@RitikaPahwa4444

Description

@RitikaPahwa4444

Summary

The app erroneously shows successfully uploaded images as "Failed". If the user taps on the retry button (or if it is retried automatically by the app), then the image gets uploaded again. The first upload, however, often lacks caption and/or depiction. This happens probably because Wikidata edit is unsuccessful for such uploads.

Related: This commit tried to forbid retries in such cases and showed the upload as successful in the Contributions list. However, the media details fragment became unreliable; it displayed the Coordinates as None Provided, Description as {{en|1=Ikuchijima}} etc.

Steps to reproduce

Hard to reproduce. A deliberate way of reproducing it:

  1. Start an upload
  2. Monitor the logcat continuously until you see the image details shown by the PageContentsCreator
  3. Cut the internet off

Expected behaviour

The app should upload the image reliably without losing data or adding duplicates to the server.

Actual behaviour

The app shows the image as "Failed" and uploads it again.

Device name

Redmi 5A

Android version

8.1.0

Commons app version

master and prodDebug

Device logs

No response

Screen-shots

No response

Would you like to work on the issue?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions