Uploading picture does not show neither success nor failure #2407

Open
opened 2025-05-03 10:45:31 +00:00 by mnalis · 7 comments

..and the picture does not show when image is closed and reopened -- but it still might be uploaded in some cases.

(ignore the fact that clicking on Take a photo open image picker instead, that is tracked in #2406; this issue happens with Firefox on desktop too)

Video:

..and the picture does not show when image is closed and reopened -- but it still might be uploaded in some cases. (ignore the fact that clicking on `Take a photo` open image picker instead, that is tracked in https://source.mapcomplete.org/MapComplete/MapComplete/issues/2406; this issue happens with Firefox on desktop too) Video:
Author

Possibly related to: #2342, #2404

It leads to duplicated pictures, e.g. https://www.openstreetmap.org/changeset/165588902 with https://www.openstreetmap.org/node/7700056749/history

Suggested resolution: MapComplete should always return whether the image taking and upload was successful (in green) or if it failed or didn't complete for some reason. It used to do that before IIRC (at least for success, see the image in #2342)?

Possibly related to: https://source.mapcomplete.org/MapComplete/MapComplete/issues/2342, https://source.mapcomplete.org/MapComplete/MapComplete/issues/2404 It leads to duplicated pictures, e.g. https://www.openstreetmap.org/changeset/165588902 with https://www.openstreetmap.org/node/7700056749/history Suggested resolution: MapComplete **should always return whether the image taking and upload was successful (in green)** or if it failed or didn't complete for some reason. It used to do that before IIRC (at least for success, see the image in https://source.mapcomplete.org/MapComplete/MapComplete/issues/2342)?
Author

note that it failure to display picture only happens randomly; i.e. few minutes after that one didn't show uploaded pictures, this one displayed it:

Note however that both the one that showed the picture, and the one that didn't show it didn't have that green "Your picture was successfully uploaded! Thank you!" which was present before.

note that it failure to display picture only happens randomly; i.e. few minutes after that one didn't show uploaded pictures, this one displayed it: Note however that both the one that showed the picture, and the one that didn't show it didn't have that green _"Your picture was successfully uploaded! Thank you!"_ which was present before.
Owner

This might have been a side-effect of #2404, I noticed the missing indicator too a few times (but didn't get around fixing it). A build fixing this is on the way (both prod/dev)

I will (probably) be field testing tomorrow, I'll get back to you then.

This might have been a side-effect of #2404, I noticed the missing indicator too a few times (but didn't get around fixing it). A build fixing this is on the way (both prod/dev) I will (probably) be field testing tomorrow, I'll get back to you then.
pietervdvn added the
awaiting fix confirmation
label 2025-05-04 22:27:00 +00:00
Owner

I think this should be fixed, would you mind confirming @mnalis ?

I think this should be fixed, would you mind confirming @mnalis ?
pietervdvn added
bug
and removed
awaiting fix confirmation
labels 2025-05-05 11:32:13 +00:00
Owner

When an upload fails, it is still reported as "uploading"

When an upload fails, it is still reported as "uploading"
Author

Hm, it still seems to not be visible sometimes (but sometimes that uploading is visible normally), see e.g. in video below - no upload progress is shown at all after I upload a picture, not even when I answer several radio-button answers. Only when I closed the element fully, did I see that there were apparently hidden windows "below" the visible one, showing progress.

And sometimes I see the uploading progress normally as soon as I take a picture; so it only seems to happen sometimes

Hm, it still seems to not be visible sometimes (but sometimes that uploading is visible normally), see e.g. in video below - no upload progress is shown at all after I upload a picture, not even when I answer several radio-button answers. Only when I closed the element fully, did I see that there were apparently hidden windows "below" the visible one, showing progress. And sometimes I see the uploading progress normally as soon as I take a picture; so it only seems to happen sometimes
Owner

Hypothesis:
Image is uploaded and linked against "node/-1". In the meantime, "node/-1" is uploaded and the id changes into "node/123456". The image will then not be linked and the "uploading" bar will not show up. So, the progress bar which sometimes doesn't show up is a symptom of this same bug.

Hypothesis: Image is uploaded and linked against "node/-1". In the meantime, "node/-1" is uploaded and the id changes into "node/123456". The image will then not be linked and the "uploading" bar will not show up. So, the progress bar which sometimes doesn't show up is a symptom of this same bug.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: MapComplete/MapComplete#2407
No description provided.