Modify

Opened 2 years ago

Last modified 11 months ago

#5846 new defect

AssertionError when undoing PurgeCommand

Reported by: Upliner Owned by: team
Priority: normal Component: Core
Version: Keywords:
Cc: skyper

Description (last modified by Don-vip)

Steps to reproduce:

  • Download some data
  • Purge it without clearing undoredo
  • Download the data again
  • Undo the PurgeCommand

java.lang.AssertionError: Primitive {Node id=338367679 version=4 V lat=51.4074839,lon=31.2550692} was removed when purging, but is still there on undo

at org.openstreetmap.josm.command.PurgeCommand.undoCommand(PurgeCommand.java:137)

Attachments (0)

Change History (6)

comment:1 Changed 2 years ago by Upliner

  • Description modified (diff)
  • Summary changed from AssertionException when undoing PurgeCommand to AssertionError when undoing PurgeCommand

comment:2 Changed 2 years ago by bastiK

I'd say the problem is not with the purge command, but the fact that "download data" does not show up in the command list.

comment:3 Changed 11 months ago by Don-vip

Ticket #7706 has been marked as a duplicate of this ticket.

comment:4 Changed 11 months ago by Don-vip

  • Cc skyper added
  • Description modified (diff)

comment:5 Changed 11 months ago by Don-vip

It's also possible to get the data again by merging layers (see #7706). Why not simply remove this assertion ?

comment:6 Changed 11 months ago by bastiK

You can edit, purge and redownload an object. If you want to restore the modified object on undo, it gets slightly more complicated.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team. Next status will be 'new'.
Next status will be 'needinfo'.The owner will change to Upliner
as duplicate The resolution will be set to duplicate. Next status will be 'closed'.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous. Next status will be 'assigned'.
Author


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

 
Note: See TracTickets for help on using tickets.