Bug 508345

Summary: File with specific kind of filename can't be deleted or extracted with Ark
Product: [Applications] ark Reporter: kimimaru
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: REPORTED ---    
Severity: normal CC: kdedev, nate, rthomsen6
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: EndeavourOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Buggy filename inside the zip.

Description kimimaru 2025-08-16 15:06:15 UTC
Created attachment 184146 [details]
Buggy filename inside the zip.

SUMMARY
Given a file with the filename:
دبكة لبنان - ÙÂ_يروز و نصرى شمس الدين .Ø.txt

The file becomes very difficult to work with, with weird behavior ranging across various parts of KDE. It can't be moved to the trash, and I could not extract it with Ark until someone sent the file to me directly which I presume escapes some characters in there.

A txt file with this name cannot be created directly on the Desktop or in Dolphin. However, you can create a file with any other name then rename it to this.

When attempting to move to trash, the error message is:
"Could not write to file /home/user/.local/share/Trash/info/دبكة لبنان - ÙÂ_يروز و نصرى شمس الدين .Ø.txt.trashinfo"

When attempting to zip the file with Ark, it says it completed but it actually did not do anything.

STEPS TO REPRODUCE
1. Create a new txt file either in Dolphin or the Desktop named "a.txt".
2. Rename the file to "دبكة لبنان - ÙÂ_يروز و نصرى شمس الدين .Ø.txt"

OBSERVED RESULT
The file can't be created directly but could be renamed to this name.
Once created, the file can't be moved directly to the trash.

Trying to create a zip archive with Ark with this filename doesn't work but the notification says it succeeds.

EXPECTED RESULT
The file is clearly a valid filename, otherwise it shouldn't be able to exist on my ext4 filesystem. It should be just as easy to work with as any other file.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.16.0-arch2-1 (64-bit)
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
My filesystem is ext4.

There are a lot of strange effects from working with a file named like this, so I listed just some of the symptoms associated with it.

I've attached a zip with the file so you can see for yourself.
Comment 1 Nate Graham 2025-08-18 20:31:58 UTC
I have no idea how to even begin to triaging or investigating this, unfortunately.