GTG

GTG files should never get empty

Bug #611117 reported by François Pinard
This bug report is a duplicate of:  Bug #579189: tags.xml is sometimes deleted. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
New
Undecided
Unassigned

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.

Revision history for this message
Thibault Févry (thibaultfevry) wrote :

This is a duplicate of bug #579189.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.