Modify

Opened 7 years ago

Last modified 3 years ago

#11991 new defect

josm conflict not showing the error

Reported by: baditaflorin Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: http 412 upload upload-api-response ResponseCode Cc:

Description (last modified by Don-vip)

i get the dialog that i have a conflict, but the conflict is not displayed

INFO: GET https://api.openstreetmap.org/api/0.6/user/details (get number of unread messages)
INFO: PUT https://api.openstreetmap.org/api/0.6/changeset/34737073...
INFO: OK
INFO: POST https://api.openstreetmap.org/api/0.6/changeset/34737073/upload...
INFO: Precondition Failed
WARNING: java.io.IOException: Server returned HTTP response code: 412 for URL: https://api.openstreetmap.org/api/0.6/changeset/34737073/upload. Cause: java.io.
erver returned HTTP response code: 412 for URL: https://api.openstreetmap.org/api/0.6/changeset/34737073/upload
java.io.IOException: Server returned HTTP response code: 412 for URL: https://api.openstreetmap.org/api/0.6/changeset/34737073/upload
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at org.openstreetmap.josm.io.OsmApi.getConnectionStream(OsmApi.java:733)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:673)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:595)
        at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:538)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesInChunks(OsmServerWriter.java:175)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:218)
        at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:250)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 412 for URL: https://api.openstreetmap.org/api/0.6/changeset/34737073/upload
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at java.net.HttpURLConnection.getResponseMessage(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseMessage(Unknown Source)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:658)
        ... 10 more
ERROR: Error header: Precondition failed: The relation 3533355 is used in relation 5209307.
ERROR: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: The relation 3533355 is used in relation 5209307.>
org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: The relation 3533355 is used in relation 5209307.>
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:716)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:595)
        at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:538)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesInChunks(OsmServerWriter.java:175)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:218)
        at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:250)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
INFO: GET https://api.openstreetmap.org/api/0.6/relation/3533355/relations

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Don-vip

Description: modified (diff)
Keywords: http 412 upload added

comment:2 Changed 3 years ago by skyper

Keywords: upload-api-response ResponseCode added

Modify Ticket

Change Properties
Set your email in Preferences
Action
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 baditaflorin
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.