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



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.