digidem / osm-p2p-server

Peer-to-peer OpenStreetMap API v0.6 Server for osm-p2p-db
BSD 2-Clause "Simplified" License
87 stars 10 forks source link

malformed xml silently fails #16

Closed gmaclennan closed 8 years ago

gmaclennan commented 8 years ago

Running this command:

echo '<osm><changeset</changeset></osm>' | curl -sT- -H content-type:text/xml -X PUT localhost:5000/api/0.6/changeset/create

returns a changeset id, but the changeset does not actually exist, because trying to upload to the changeset id returns not found.

Clearly this is due to the syntax error in the xml, but it should not silently fail.

ghost commented 8 years ago

fixed in 1.10.7