Bug 471264

Summary: Cannot send files with colon in filename
Product: [Applications] kdeconnect Reporter: jakub.nowak98
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: andrew.g.r.holmes
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jakub.nowak98 2023-06-20 12:31:57 UTC
SUMMARY
Cannot send files that contain colon in filename.
Colon is an invalid character in filenames on Android. Yet, it still should be possible to send a file, or at the very least, the error message should be more descriptive.


STEPS TO REPRODUCE
1. Create a file with colon in filename on desktop.
2. Try to send this files to Android device.

OBSERVED RESULT
Error "Failed receiving file from <desktop-hostname>" on Android. No error on desktop.

EXPECTED RESULT
There are multiple solutions. I would prefer that the file is sent to Android and the colon is replaced with underscore (that's what my phone does, when I try to rename the file and put a colon in filename).
Another option would be to display a dialogue prompting to input a different filename.
At least fixing the error message, so it points out that the filename is invalid, and why, would be an improvement.

SOFTWARE/OS VERSIONS
Android version: 13
Android system: GrapheneOS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.8-zen1-1-zen (64-bit)
Graphics Platform: X11
Comment 1 jakub.nowak98 2023-06-20 12:35:46 UTC
Seems like it's exactly the same problem with "|" character.