Bug 270886 - Empty Trash does not always set size to 0 in .local/share/Trash, so further trials to delete files fail
Summary: Empty Trash does not always set size to 0 in .local/share/Trash, so further t...
Status: RESOLVED DUPLICATE of bug 245482
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-13 22:05 UTC by Johann Roedel-Krainz
Modified: 2012-01-01 14:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johann Roedel-Krainz 2011-04-13 22:05:11 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

After deleting file from the trash manually (shift-del) and using "empty- trash" from the context menu I could no longer delete files

Reproducible: Sometimes

Steps to Reproduce:
take an empty trash, delete some files, 
change the size in the metadata file (e.g. decrease first digit)
(I did NOT do that initially !)
select trash in dolphin
shift-del all the files in the trash 


Actual Results:  
the size of the deleted file will be subtracted, and be VERY big
the trash is recognized as empty and 
the context menu does not allow to empty it
i.e. size in metadata and displayed information do NOT match
I suppose in my original case some subtractions must have been buggy, 
because I could finally "empty trash"After a while I could no longer delete files: message: "trash is full"
the file .local/trash/metadata contained "Size=18446744073674717913"
but the trash was empty (in dolphin, krusader)
setting size = 0 solved the problem  

Expected Results:  
"empty trash" should always be callable (i.e.should not only check files) 
"empty trash" should always set the size to zero, (no subtraction)
Comment 1 Ivan Sorokin 2011-06-26 19:20:53 UTC
KDE 4.6.2, Ubuntu 11.04 (x64)

I have the same problem.

I was not able to delete any file with the message "The trash has reached its maximum size! Cleanup the trash manually."

My ~/.local/share/Trash/metadata contains:
[Cached]
Size=18446744067049513298

When I delete content of ~/.local/share/Trash/ everything become ok.
Comment 2 Pierre Buard 2011-08-03 22:03:58 UTC
KDE 4.7.0, Arch Linux x86_64

Had the same problem after upgrading to 4.7. The trash was empty but I still couldn't delete anything.
Solved it by resetting the Cached size in metadata.
Comment 3 Jekyll Wu 2012-01-01 14:55:03 UTC

*** This bug has been marked as a duplicate of bug 245482 ***