Modify

Opened 5 years ago

Closed 5 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 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 5 years ago.
Before deletion of the two ways
test2.osm (18.8 KB) - added by anonymous 5 years ago.
After deletion

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by anonymous

Before deletion of the two ways

Changed 5 years ago by anonymous

After deletion

comment:1 Changed 5 years ago by framm

  • Priority changed from major to minor
  • Summary changed from Overlapping ways are not deleted to No 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 Changed 5 years ago by anonymous

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 Changed 5 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed in r977."

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.