Bug 444697

Summary: KIO trash store incorrect information in directory size cache
Product: [Frameworks and Libraries] frameworks-kio Reporter: stream9 <stream009>
Component: TrashAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.87.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description stream9 2021-10-31 08:03:44 UTC
- According to the trash specification (https://specifications.freedesktop.org/trash-spec/trashspec-latest.html) mtime field is number of SECONDS since epoch. But it seems KIO's implementation (https://github.com/KDE/kio/blob/master/src/ioslaves/trash/trashsizecache.cpp#L56) stores milliseconds since epoch therefore causing compatibility issue with other implementations.

- Also FYI specification is vague about whether mtime include leap seconds or not.