Bug 386340 - cannot handle files with weird names
Summary: cannot handle files with weird names
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 17.08.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-29 23:58 UTC by Benito van der Zander
Modified: 2017-10-30 00:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.