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
fixed in r1876