Modify

Opened 4 years ago

Closed 4 years ago

#2322 closed defect (fixed)

Regression in r2038 (patches "JOSM destroys its preferences, when disk is full")

Reported by: anonymous Owned by: xeen
Priority: major Component: Core
Version: latest Keywords:
Cc:

Description

When disk is full or JOSM crash during writing of the preferences, all preferences are gone.

Attachments (1)

do_not_destroy_prefs.patch (2.9 KB) - added by xeen 4 years ago.
Backups old prefs, writes new prefs to tempfile first. If disk becomes full or josm crashes only the tempfile should be broken. At least, there should be a working backup.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by avar

  • Summary changed from JOSM destroys it's preferences, when disk is full to JOSM destroys its preferences, when disk is full

Changed 4 years ago by xeen

Backups old prefs, writes new prefs to tempfile first. If disk becomes full or josm crashes only the tempfile should be broken. At least, there should be a working backup.

comment:2 Changed 4 years ago by xeen

  • Summary changed from JOSM destroys its preferences, when disk is full to [PATCH] JOSM destroys its preferences, when disk is full

comment:3 follow-up: Changed 4 years ago by anonymous

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

applied in r2038

comment:4 in reply to: ↑ 3 Changed 4 years ago by bastiK

  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Summary changed from [PATCH] JOSM destroys its preferences, when disk is full to Regression in r2038 (patches "JOSM destroys its preferences, when disk is full")
  • Version set to latest

Since r2038:

If you remove the josm-home folder, an error-message pops up on start-up ("Preferences file had errors...").

A fresh preferences file should be created silently.

comment:5 Changed 4 years ago by anonymous

  • Owner changed from team to xeen
  • Status changed from reopened to new

comment:6 Changed 4 years ago by Gubaer

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

(In [2053]) fixed #2322: Regression in r2038 (patches "JOSM destroys its preferences, when disk is full")

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