Bug 480165

Summary: When copying a folder to ExFAT with a name that has unsupported characters, Dolphin suggests to rename it but then fails to copy the contents
Product: [Applications] dolphin Reporter: Albert Vaca Cintora <albertvaka>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, kfm-devel, marcos.carot
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Error dialog
Rename dialog

Description Albert Vaca Cintora 2024-01-22 12:24:48 UTC
Created attachment 165129 [details]
Error dialog

SUMMARY
ExFAT doesn't allow file names with characters like question marks, colons, etc. When copying a file folder that has such a character in its name, Dolphin is smart enough to suggest renaming it on the fly. However, the contents of the folder then fail to be copied to the renamed location.

STEPS TO REPRODUCE
You need a disk formatted with a proper filesystem like ext4 and a flashdrive formatted with exfat.
1. Create a folder in your ext4 disk with a name that contains question marks eg: "hello??". Create one file inside the folder.
2. Copy the folder to the exFAT disk. Dolphin suggests to rename it to replace the question marks, which are not valid in exfat, in the previous example to "hello__".

OBSERVED RESULT
3. Dolphin fails to copy the contents of the directory, with the attached error. (BONUS BUG: the filename is cropped even if I resize the window, so I can't never fully read the file path).

EXPECTED RESULT
Once the folder is renamed, the contents should be copied successfully from the unrenamed to the renamed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: master
KDE Plasma Version: master
KDE Frameworks Version: master 
Qt Version: master
Comment 1 Albert Vaca Cintora 2024-01-22 12:25:08 UTC
Created attachment 165130 [details]
Rename dialog
Comment 2 Marcos Raul Carot 2025-03-15 08:49:12 UTC
I was about to submit this same.

Just to add mine:

SUMMARY
Say you have a folder structure with files in ext4. The folder has characters not supported by FAT32/exFAT such as colon.
You also have another partition with FAT32/exFAT: you try to copy the whole folder. Dolphin warns agout the unsuported characters and offers to replace. You agree, but it fails to copy the files within.

STEPS TO REPRODUCE
1. Have a source folder including a ":", with some files in it, in an ext4 partition
2. Have a destination with an FAT32/exFAT partition
3. Drag and drop the folder from the source to the destination
4. Dolphin warns you about unsupported characters and offers to replace them, you accept
5. Dolphin creates the folder in the FAT32/exFAT partition with the unsupported character replaced
6. Dolphin cannot copy the files within. I suspect it does not "know" that the destintination folder now has a different name.

OBSERVED RESULT
Folder copied with unsupported characters replaced. Files within not copied, error.
I can copy the files within the source folder to the newly created folder, so the error only shows when trying to copy the folder all together with the files.

EXPECTED RESULT
Folder copied with unsupported characters replaced. Files within copied.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.17-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor 1: AMD Radeon RX 5700 XT
Graphics Processor 2: AMD Radeon Graphics
Manufacturer: ASUS
Comment 3 Patrick Silva 2025-04-22 10:33:01 UTC
Can reproduce with Dolphin 25.04.0.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Graphics Platform: Wayland