Bug 466728

Summary: KAutoSave exceeds maximum file length on ecryptfs
Product: [Frameworks and Libraries] frameworks-kcoreaddons Reporter: Jarno van der Kolk <jarno>
Component: generalAssignee: Michael Pyne <mpyne>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.103.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jarno van der Kolk 2023-03-02 17:10:29 UTC
SUMMARY
I'm using Kdenlive on a user home partition that is encrypted with ecryptfs. Kdenlive uses KAutoSave to autosave the project. However, when ecryptfs also encrypts filenames, they become longer on the underlying file system (ext4 in my case).

STEPS TO REPRODUCE
1. Start Kdenlive
2. Have a project saved in a folder like "OneDrive/video/Seminar Series/2023-02-28 GPU Programming"
3. Edit the project

OBSERVED RESULT
After every edit, Kdenlive outputs an error saying that autosave failed.

EXPECTED RESULT
Autosave should work

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.013.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I think it's related to this older (and resolved) bug report: https://bugs.kde.org/show_bug.cgi?id=412519
The final comment in that thread points to a fix in KAutoSave to deal with too long path names. However, ecryptfs only supports filenames that are shorter than FILENAME_MAX which I assume is a fixed length.