Modify

Opened 16 years ago

Closed 16 years ago

#1316 closed defect (fixed)

No error message when deletion of ways fails with "precondition failed"

Reported by: anonymous Owned by: framm
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

I have a way which is partly overlapped by two other ways. As the two overlapping ways are using the same nodes and the same name / highway type, the two ways are clearly editing errors. BTW, the two ways are member of a relation.

So I tried to fix this by deleting the two overlapping ways in JOSM. I uploaded the changes I've made. The uploading process seems to work, as I get no error message.

But when I download the area again after a restart of JOSM, the overlapping ways are still existent.

I've attached two .osm-files:
test.osm: The original area with no change.
test2.osm: In this file the overlapping ways are deleted.

A capture of the communication packets between JOSM and OSM API are available on request. BTW, I'm using the latest version, rev 735.

ID's of the two overlapping ways: 25669152 & 24908624
ID of the affected relation: 19625
Map URL: http://www.informationfreeway.org/?lat=50.0302917539414&lon=10.231672139709922&zoom=17&layers=0000F0B0F

Attachments (2)

test.osm (18.9 KB ) - added by anonymous 16 years ago.
Before deletion of the two ways
test2.osm (18.8 KB ) - added by anonymous 16 years ago.
After deletion

Download all attachments as: .zip

Change History (5)

by anonymous, 16 years ago

Attachment: test.osm added

Before deletion of the two ways

by anonymous, 16 years ago

Attachment: test2.osm added

After deletion

comment:1 by framm, 16 years ago

Priority: majorminor
Summary: Overlapping ways are not deletedNo error message when deletion of ways fails with "precondition failed"

You cannot delete ways that are part of a relation. The API will refuse this deletion. It may be possible that JOSM does not show this error message properly (which would be the bug we should fix, and I have changed the report title accordingly). Remove the ways from the relation and you will be able to upload your changes.

comment:2 by anonymous, 16 years ago

Sorry, but your hint to remove the ways from the relation didn't work for me. I removed the way 24908624 from the relation, and uploaded the changes in the relation to the server. But the capture shows a 412 Precondition Failed in response to the PUT I got from the server. http://api.openstreetmap.org/api/0.5/relation/19625 shows that way 24908624 is still a member of the relation.

comment:3 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

Should be fixed in r977."

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
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.