Modify

Ticket #4675 (closed defect: fixed)

Opened 2 years ago

Last modified 20 months ago

[PATCH] conflict solution: deleting node and undo, does not render way right.

Reported by: skyper Owned by: team
Priority: critical Component: Core
Version: latest Keywords: conflict undo delete node
Cc:

Description

HI

Thanks for your work. We are getting there !!!

I have a conflict on node, It is "not on server". This node is member of a way. If I solve the conflict by deleting the node on my data and afterwards choose undo. The node reappears as "lonely" node instead of member of the way. I do not know if this is just a render issue or if it is a data issue.

r3057-r3081, openjdk and sun

Attachments

undoconflict.diff (3.3 KB) - added by Upliner 20 months ago.
patch to fix the problem

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by skyper

  • Priority changed from critical to blocker

I came across this bug again, and this time it led to inconsistant data.

Accidently, I deleted a node which belong to another way with only to nodes. The way was not deleted and validator reported it as a way with only one node. There was no way of retrieving this way and trying to connect a new way to it led to an exception.

comment:2 in reply to: ↑ 1 Changed 2 years ago by skyper

Replying to skyper:

I came across this bug again, and this time it led to inconsistant data.

Sorry:

Accidently, I deleted a node which belonged to another way with only to two nodes. The way was not deleted and validator reported it as a way with only one node. There was no way of retrieving this way and trying to connect a new way to it led to an exception.

comment:3 Changed 22 months ago by stoecker

  • Priority changed from blocker to normal

comment:4 Changed 22 months ago by skyper

  • Priority changed from normal to critical

Any chance to fix it ? It is deleting data and no possibility to undo.

comment:5 Changed 20 months ago by Upliner

I've made the patch to fix this issue: http://gist.github.com/441223 (I've tried to attach it here, but encoutered internal Trac error, see here: http://gist.github.com/441239).

In future I want to change the conflict system and fully get rid of PurgePrimitivesCommand and UndeletePrimitivesCommand.

comment:6 Changed 20 months ago by Upliner

  • Summary changed from conflict solution: deleting node and undo, does not render way right. to [PATCH] conflict solution: deleting node and undo, does not render way right.

comment:7 Changed 20 months ago by anonymous

What internal Trac error?

comment:8 Changed 20 months ago by Upliner

Error is: "UnboundLocalError: local variable 'content' referenced before assignment" I'd put error details in the gist.

comment:9 Changed 20 months ago by stoecker

Trac error fixed.

Changed 20 months ago by Upliner

patch to fix the problem

comment:10 Changed 20 months ago by stoecker

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

(In [3335]) #close #4675 - patch by Upliner - error in conflict/undo handling

View

Add a 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.