Modify

Opened 18 years ago

Closed 18 years ago

#177 closed defect (fixed)

validator: badly fixes single node segments in way

Reported by: anonymous Owned by: anonymous
Priority: major Milestone:
Component: unspecified Version: latest
Keywords: Cc:

Description

I don't know whether this is the right place to submit validator bugs, but I'll try anyway.

If a single node segment is part of a way the validator deletes the single node segment, but it doesn't remove it from the way. If you upload your changes they will be rejected with a 412 "precondition failed" error. As there is no undo after you started uploading your changes, parts of your changes are lost.

See attached testcase.

Attachments (1)

test.osm (306 bytes ) - added by anonymous 18 years ago.
test case

Download all attachments as: .zip

Change History (4)

by anonymous, 18 years ago

Attachment: test.osm added

test case

comment:1 by imi, 18 years ago

uhm, bugs in plugins aren't managed here..

Could be a nice idea however. I'll ask some plugin writer whether they want to use this site as bug tracking..

comment:2 by frsantos@…, 18 years ago

Owner: changed from imi to anonymous
Status: newassigned

the bug comes from the fact that deleting a segment with the DeleteCommand does not modify any of the ways that may contain it, and it just marks the segment as deleted.

It should be useful to have a collection of commands that does all these actions in a "black box" way, from the plugin perspective. Meanwhile, I'll fix it with a "transparent box" way (that is, I know that I must mark the segment as deleted, remove the segment from the way and replace, and if the segment is the only one in the way, remove the way... any other related effect??)

comment:3 by frsantos@…, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in latest version

Modify Ticket

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