← Back to team overview

gtg team mailing list archive

[Bug 611117] [NEW] GTG files should never get empty

 

Public bug reported:

(Cleaning some old notes of mine)

This was while using GTG 2.4.0 from the daily ppa.

When GTG crashes, XML files may be left empty.

This should never happen.  GTG should not open an existing file for
writing, ever.  The proper way to proceed is to open another file with a
temporary name in the same directory, and only once properly written and
closed, the original file may be deleted and the temporary file renamed
appropriately.

With a bit of sophistication, GTG should check for a temporary name
whenever a required file is missing, and do the rename on the fly.  This
accounts for a crash happening between the delete and the rename, above.

** Affects: gtg
     Importance: Undecided
         Status: New

-- 
GTG files should never get empty
https://bugs.launchpad.net/bugs/611117
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: New

Bug description:
(Cleaning some old notes of mine)

This was while using GTG 2.4.0 from the daily ppa.

When GTG crashes, XML files may be left empty.

This should never happen.  GTG should not open an existing file for writing, ever.  The proper way to proceed is to open another file with a temporary name in the same directory, and only once properly written and closed, the original file may be deleted and the temporary file renamed appropriately.

With a bit of sophistication, GTG should check for a temporary name whenever a required file is missing, and do the rename on the fly.  This accounts for a crash happening between the delete and the rename, above.





Follow ups

References