Opened 13 years ago

Closed 13 years ago

#454 closed defect (fixed)

Protect data integrity / disallow deletion of used objects

Reported by: frederik@… Owned by: steve@…
Priority: major Milestone:
Component: api Version:
Keywords: Cc:


It is possible to issue DELETE requests for nodes or segmements that are in use by segments or ways, respectively.

This problem has always existed but is now more dangerous, as the modified "map" call will return segments and nodes outside of the bounding box and without their context (i.e. other segments/ways using the nodes/segments that are outside the bounding box are NOT returned).

To protect data integrity, requests for deletion of items that are in use should be answered with something like "412 precondition failed" or so (I thing this is what is used when one tries to create a way from non-existing segments, so that would be related).

It will of course be very difficult for editors to handle this right - say I removed a node from a way in JOSM, this will result in one node and one segment being removed and another segment being changed to span the gap, then when uploading the lot suddenly deletion of the node fails and the whole operation would theoretically have to be cancelld. But that is another problem which the editors need to deal with.

Change History (1)

comment:1 Changed 13 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

This was implemented some time ago.

Note: See TracTickets for help on using tickets.