Bug 385673 - Show appropriate error message when attempting to write a >190 character file name on encfs filesystem (e.g. for encrypted Home folder)
Summary: Show appropriate error message when attempting to write a >190 character file...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.38.0
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2017-10-12 19:22 UTC by stephen.p.ford
Modified: 2018-04-04 20:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Terminal output on kioclient input plus GUI failure notification (80.35 KB, image/png)
2017-10-12 19:22 UTC, stephen.p.ford
Details
Generic GUI failure pop-up notification (23.86 KB, image/png)
2017-10-12 21:36 UTC, stephen.p.ford
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stephen.p.ford 2017-10-12 19:22:22 UTC
Created attachment 108317 [details]
Terminal output on kioclient input plus GUI failure notification

New to KDE Dolphin (just installed Kubuntu 17.10 Beta 2) and finding I cannot create (from scratch, or via download or copy) files or folders with paths fewer than 255 characters but greater than roughly 190 characters in length (varies slightly from case to case -- typically 193 non-Unicode characters is the cap, though fewer characters are allowed if Unicode characters such as Chinese hanzi are included). 

Attached input and output from an attempt to move a filename (which worked previously in Linux Mint 18.2's Nemo file manager, on an Ext4 partition) from an external hard drive to Kubuntu. Also attached GUI pop-up error (which occurs both when file move is attempted in Dolphin GUI and in terminal using `kioclient`). Attempted downloads of files with comparable name length fail silently and immediately without error notification.

Running...
Kubuntu 17.10 Beta 2
KDE Plasma v5.10.5
KDE Frameworks v5.38.0
Comment 1 Nate Graham 2017-10-12 19:58:00 UTC
...But you *can* write files with more than 255 characters?
Comment 2 stephen.p.ford 2017-10-12 20:43:37 UTC
Length > 255 doesn't work either, but everything I've tried and failed to create has been in the 180-230 character range for the full path. (Was just trying to bound the problem based on some follow-up questions I'd gotten on Reddit; sorry if it introduced ambiguity.)
Comment 3 Nate Graham 2017-10-12 20:57:19 UTC
I see some commits from way back when guarding against long file paths because of restrictions in ext2 and ext3. Obviously those are no longer relevant for ext4 filesystems.
Comment 4 Elvis Angelaccio 2017-10-12 21:13:08 UTC
Are you using disk encryption?
Comment 5 stephen.p.ford 2017-10-12 21:25:12 UTC
I did indeed encrypt my Home folder (after manually setting root, home, and swap partitions) during the guided Kubuntu setup...
Comment 6 Elvis Angelaccio 2017-10-12 21:27:10 UTC
Yeah encfs supports only 190 chars in pathnames.
Comment 7 Nate Graham 2017-10-12 21:28:18 UTC
Sounds like we need to make that clear in the GUI when a user tries it, in addition to supporting efforts to remove that limitation. Can we use this bug to track the former?
Comment 8 stephen.p.ford 2017-10-12 21:31:39 UTC
Thanks a ton Elvis and Nate -- greatly appreciate it. I'll switch the "Importance" to "Wishlist", I guess; let me know if I should change anything else.
Comment 9 Nate Graham 2017-10-12 21:33:30 UTC
If there is currently a GUI error message when you try to do this in Dolphin, can you attach it to this bug report? At the moment I don't have an encfs filesystem I can test on.
Comment 10 stephen.p.ford 2017-10-12 21:36:46 UTC
Created attachment 108322 [details]
Generic GUI failure pop-up notification

Failure that appears when attempting to create a file with path > 190 characters in an Encfs-encrypted Home folder via Dolphin GUI
Comment 11 stephen.p.ford 2017-10-12 21:37:57 UTC
There you go Nate -- let me know if I can generate anything else of use
Comment 12 Nate Graham 2017-10-12 21:41:46 UTC
Thanks Stephen! Yeah that's a pretty horrid error message, especially in this situation you're going to have a really long path, so it's going to be huge. I think we can take it from here. Thanks for the bug report.
Comment 13 stephen.p.ford 2017-10-12 21:45:57 UTC
Sounds good -- thanks again!
Comment 14 Kai Uwe Broulik 2018-04-04 08:47:38 UTC
I think this is more of a KIO issue than Dolphin.