Bug 270886

Summary: Empty Trash does not always set size to 0 in .local/share/Trash, so further trials to delete files fail
Product: [Applications] dolphin Reporter: Johann Roedel-Krainz <johann.roedel-krainz>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED DUPLICATE    
Severity: minor CC: adaptee, pierre+libre.kde, vanyacpp
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***