Bug 160980 - [testcase] KDE config files content is deleted when applications are launched while the home directory is full
Summary: [testcase] KDE config files content is deleted when applications are launched...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: VHI grave
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 164375 181557 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-18 16:36 UTC by Christophe Marin
Modified: 2009-06-15 00:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Marin 2008-04-18 16:36:29 UTC
Version:           4.00.69 (KDE 4.0.69 >= 20080410) (using 4.00.70 (KDE 4.0.70 >= 20080418), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-16-generic

This is a severe issue due to KDE updating config files *after* applications are closed.

Testcase (trying to reproduce it is not advised)

- Open a KDE session,
- Open KDE applications
- Fill your home partition 
- Close your KDE apps (or logout)

=> Look in $KDEHOME/.kde/share/config, the applications you opened while the partition was full now have a zero size. All settings were lost.
Comment 1 FiNeX 2008-06-01 23:25:08 UTC
Changed severity to "GRAVE".
Comment 2 Elias Probst 2008-06-16 13:45:35 UTC
I can confirm this.
KConfig needs to check first whether there is space left on the volume - if not, don't do anything, just leave the files in their previous state and if possible, raise a warning.
Comment 3 Christophe Marin 2008-06-18 12:26:13 UTC
*** Bug 164375 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2008-06-18 12:37:39 UTC
Raising priority to VHI. 

This issue needs some attention before 4.1 comes out. Otherwise, change it back to normal.
Comment 5 FiNeX 2008-06-18 13:06:58 UTC
It should be fixed, togheter with the "free space" login issue.
Comment 6 DjDarkman 2008-06-19 07:10:14 UTC
I would recommend:
- checking of disk space
- try to write to a temporary file (in the same directory)
- if successfull then swap the two files
- if not successfull warn the user of the problem more specificly ("can`t save this or that" doesn`t tell the problem)

and I would recommend to offer a possibility to save/export this data to a user specified location so that the user doesn`t loose it`s data like did.
Comment 7 Lubos Lunak 2008-06-28 12:11:57 UTC
SVN commit 825453 by lunakl:

Check whether closing the file was actually successful, otherwise
this code happily overwrites original files with empty ones. Also
remove the right (temporary) file on failures.
BUG: 160980



 M  +6 -3      ksavefile.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=825453
Comment 8 Dario Andres 2009-06-15 00:01:44 UTC
*** Bug 181557 has been marked as a duplicate of this bug. ***