https://bugs.kde.org/show_bug.cgi?id=495214
Bug ID: 495214 Summary: A filename whose length equals NAME_MAX cannot be moved to wastebin, because appending `.trashinfo` causes the resulting filename to exceed that value Classification: Applications Product: dolphin Version: 24.08.2 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: dolphin-bugs-n...@kde.org Reporter: 4wy78...@rokejulianlockhart.addy.io CC: kfm-de...@kde.org Target Milestone: --- Created attachment 175124 --> https://bugs.kde.org/attachment.cgi?id=175124&action=edit Screenshot of the dialog window. SUMMARY ------- Filenames at the 255-character limit (as defined by `NAME_MAX` in `file:///usr/src/linux-headers-2.6.38-10/include/linux/limits.h`) cannot be moved to the wastebin by appending `.trashinfo`, because the resultant filename exceeds `NAME_MAX`. Consequently, this situation needs to be specially handled by Dolphin, by: 1. Solely providing the "Delete" option, which is unintuitive and dangerous UX. 2. Prompting the user to manually reduce the filename before it can be moved to the wastebin. This shall be problematic for multiple filenames, because not everyone knows how to use KRename. 3. Automatically reducing the filename, and storing the original name in a sidecar file. This is the best option, because the user shouldn't be manually interacting with `$HOME/.local/share/Trash/` outside of `trash:/` anyway. STEPS TO REPRODUCE ------------------ 1. Name a file `!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`. 2. Attempt to send that file to the wastebin via Dolphin's context menu entry. OBSERVED RESULT --------------- It fails, with a nondescript error. See the attached screenshots. EXPECTED RESULT --------------- As aforementioned. SOFTWARE/OS VERSIONS -------------------- > ```YAML > Operating System: Fedora Linux 40 > KDE Plasma Version: 6.2.1 > KDE Frameworks Version: 6.7.0 > Qt Version: 6.7.2 > Kernel Version: 6.11.4-201.fc40.x86_64 (64-bit) > Graphics Platform: Wayland > Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor > Memory: 30.4 GiB of RAM > Graphics Processor: AMD Radeon RX 5700 > Manufacturer: ASRock > Product Name: X670E Taichi > ``` ADDITIONAL INFORMATION ---------------------- Obviously, it's a very, very niche situation. Noticed when filing https://github.com/darkreader/darkreader/issues/13410#issue-2606658084. -- You are receiving this mail because: You are watching all bug changes.