SUMMARY Sometimes a file with a long name cannot be moved to trash. STEPS TO REPRODUCE 1. Find a JPEG image and call it: "Файл с длинным именем — сам себя не создаст: что происходит, если удалить файл, в имени которого — целое предложение на русском языке.jpeg" (no newlines) 2. Attempt to move it to trash with Dolphin or kioclient5 OBSERVED RESULT Error message: "Could not write to file /home/user/.local/share/Trash/info/[filename].trashinfo" EXPECTED RESULT File is successfully moved to trash SOFTWARE/OS VERSIONS Operating System: openSUSE Leap 15.2 KDE Plasma Version: 5.20.90 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2
A simpler test case is: $ touch "уууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууууу.txt" Here I used Cyrillic 'у'. If I replace it with Latin 'y', the file is trashed as expected, which hints at a wrong byte size limit somewhere.
The byte size limit is apparently that of ext4: 255 bytes for the filename. .trashinfo cannot be created because it increases the filename byte size over the limit. This needs a better error message or a different trash infrastructure that does not require metadata files with longer names.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2064