﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
483	Precondition failed after fixing intersected ways	andy@…	framm	"I fixed some validator errors and warnings:
 * double nodes
 * intersected ways

When I tried to upload the data, the upload aborts with an exception saying ""Precondition failed"".
I tried to find and fix the way by splitting it into parts until I found the bad part. The last part was a node and a way with just this node. Both of them where deleted.

Maybe this is related with #177 (and maybe #237 too)

{{{
upload to: http://www.openstreetmap.org/api/0.5/node/104050921
got return: 412 with id 104050921
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.5' generator='JOSM'>
  <node id='104050921' timestamp='2007-11-09T13:53:26+00:00' user='bobo11' visible='true' lat='47.6054856' lon='8.4947361' />
</osm>

java.lang.RuntimeException: 412 Precondition Failed
        at org.openstreetmap.josm.io.OsmServerWriter.sendRequest(OsmServerWriter.java:192)
        at org.openstreetmap.josm.io.OsmServerWriter.visit(OsmServerWriter.java:90)
        at org.openstreetmap.josm.data.osm.Node.visit(Node.java:41)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:73)
        at org.openstreetmap.josm.actions.UploadAction$2.realRun(UploadAction.java:151)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:84)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
org.xml.sax.SAXException: An error occoured: 412 Precondition Failed
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:78)
        at org.openstreetmap.josm.actions.UploadAction$2.realRun(UploadAction.java:151)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:84)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
}}}"	defect	closed	minor		Core	latest	fixed		
