Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Protect data integrity / disallow deletion of used objects #454

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: frederik[at]remote.org
[Submitted to the original trac issue database at 9.26am, Monday, 14th May 2007]

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.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 12.29pm, Saturday, 18th August 2007]

This was implemented some time ago.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant