Bug 386340

Summary: cannot handle files with weird names
Product: [Applications] dolphin Reporter: Benito van der Zander <xmapskde>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: elvis.angelaccio
Priority: NOR    
Version First Reported In: 17.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Benito van der Zander 2017-10-29 23:58:55 UTC
When a file has unusual bytes in its name, Dolphin cannot delete it.

I am not sure which bytes are causing the trouble, but after creating 254 files for every byte in the 0x01 to 0xff range, I could neither delete them nor the parent folder.

To reproduce it, you can clone the repo at https://github.com/benibela/nasty-files and then you cannot delete it.
Comment 1 Christoph Feck 2017-10-30 00:13:03 UTC
If you put random raw bytes 0x80-0xFF in a filename, you are creating illegal UTF-8 encoded filenames. Those are not supported by the QString-based file API.
Comment 2 Christoph Feck 2017-10-30 00:17:33 UTC
See also bug 165044.