Modify

Opened 15 years ago

Closed 15 years ago

#3139 closed defect (fixed)

version conflict handling is broken

Reported by: Apo42 Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: conflict upload Cc:

Description

Josm stops with error on upload if a version conflict is detected.

PUT http://api.openstreetmap.org/api/0.6/relation/181794... Conflict
Error header: Version mismatch: Provided 1, server had: 2 of Relation 181794
java.lang.IllegalArgumentException: parameter id > 0 required. Got 0.

at org.openstreetmap.josm.data.osm.DataSet.getPrimitiveById(DataSet.java:319)
at org.openstreetmap.josm.actions.UpdateSelectionAction.updatePrimitive(UpdateSelectionAction.java:166)
at org.openstreetmap.josm.actions.UploadAction$UpdatePrimitiveTask.realRun(UploadAction.java:531)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:62)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:116)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)

But the action=modify is not removed from all objects succesfully uploaded before the conflict. the next upload trial will update all these changes again and add a new obsolete version

Attachments (0)

Change History (1)

comment:1 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r1876

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.