#5499 closed defect (duplicate)
Button to delete old autosave data not functional
| Reported by: | wendorff@… | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Component: | Core |
| Version: | latest | Keywords: | autosave |
| Cc: | osm@…, florian@… |
Description
As requested in #5359 there is a button to delete autosave layers at restart after JOSM crashed.
That button is not functional.
Pressing it, the dialog telling me about the unsaved layers is closed, but the layer data is not deleted from ~/.josm/autosave/
When restarting JOSM the dialog appears again for the same old data.
Deleting the files manually helps as a workaround - but that's not a solution ;)
Attachments (1)
Change History (14)
comment:1 Changed 3 years ago by bastiK
comment:2 Changed 3 years ago by wendorff@…
That's possible; will check it again as soon as I run into the bug next time ;)
I didn't check the exact content of autosave/deleted_layers; instead I deleted the deleted_layers directory and the .osm files.
comment:3 Changed 3 years ago by malenki
- Cc osm@… added
comment:4 Changed 3 years ago by grossing
- Cc florian@… added
comment:5 Changed 3 years ago by bastiK
[3559] fixes the described bug, please close if you think it works now.
comment:6 follow-up: ↓ 7 Changed 3 years ago by anonymous
same as before (tested with 3587): Button is not working, reappears after next start of JOSM
comment:7 in reply to: ↑ 6 Changed 3 years ago by wendorff@…
sorry, missed my mail-adress at the comment...
Replying to anonymous:
same as before (tested with 3587): Button is not working, reappears after next start of JOSM
comment:8 follow-up: ↓ 9 Changed 3 years ago by bastiK
Can you zip your preference folder and attach it here or send to bastikln (at) googlemail.com? I don't need all the content, but enough to reproduce the problem.
(In the preference file your username and password is saved. You might want to delete that before.)
comment:9 in reply to: ↑ 8 Changed 3 years ago by wendorff@…
sorry for the late answer...
problem already is there.
I attach the preference folder here.
comment:10 Changed 3 years ago by bastiK
Still no luck. I follow these steps:
- replace preference folder with content of zip file
- start JOSM --> It offers to recover 2 files
- click discard and restart --> dialog does not show again
Tested on Ubuntu and Win XP
comment:11 Changed 3 years ago by bastiK
@jttt: Any ideas what could be wrong?
comment:12 Changed 2 years ago by bastiK
- Resolution set to duplicate
- Status changed from new to closed
Could you please test again with version 3677 (click "discard" - 3rd button in dialog) and report debugging output to ticket #5559?
comment:13 Changed 2 years ago by bastiK
Closed as duplicate of #5559.



It moves the files to ~/.josm/autosave/deleted_layers, but this fails if that folder already contains a file with the same name.
Can you confirm that this is the cause of the problem?
(I will fix this later.)