Opened 7 years ago

Last modified 3 years ago

#6151 new defect

If upload ends with internal server error, no warning is shown

Reported by: bilbo Owned by: team
Priority: critical Milestone:
Component: Core Version: tested
Keywords: Cc:

Description (last modified by verdy_p)

I was using upload of larger amount of elements, with uploading by parts.

I found out, that if upload ends with internal server error, then no error message is shown and there is no indication that upload went wrong (except that if you opress "upload" again, you get upload dialog (with objects remaining to be uploaded) instead of "Nothing to upload")

In such cases (Internal server error received from server), the upload should either autmatically resume, or at least warn user that something went wrong (like a messagebox), instead of silently terminating the upload (so user thinks everything was uploaded OK).

Only this message is shown on JOSM console:

POST Internal Server Error
Waiting 10 seconds ...
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by skyper

Priority: normalcritical

This can lead to many duplicated objects (errors).

comment:2 in reply to:  1 Changed 7 years ago by bilbo

Replying to skyper:

This can lead to many duplicated objects (errors).

Probably not, in this case there is greater chance of user mistakenly assuming that everything is uploaded well - which could be even worse, since some data that are expected to be on server would be missing then.

As for duplicated uploads, it is quite common problem. I think this could be remedied by setting some reasonable default to uploading to changeset (like setting "upload data in chunks of size 500" instead of "all at once"). This would lessen chance for timeouts (server should process 500 objects in much less time than several thousands) and impact of duplicates if timeouts happen (you get 500 extra objects in such case instead of several thousands)

comment:3 Changed 6 years ago by brycenesbitt

++ on this. I've seen it also.

comment:4 Changed 5 years ago by verdy_p

Description: modified (diff)

++ I still experience some long uploads that I leave finishing in the background, and that terminate without notice. I only note that it was not fished when I continue editing and submit new unrelated data which get mixed in the same changeset instead of being separated. This adds confusion when reviewing changes as nothing indicates that some new objects may be duplicated later.

comment:5 Changed 3 years ago by bastiK

Is there a good way to trigger an internal server error? Otherwise this is hard to test.

comment:6 in reply to:  5 Changed 3 years ago by Don-vip

Replying to bastiK:

Is there a good way to trigger an internal server error?

Only ways I know are:

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to bilbo
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.