Bug 471264 - Cannot send files with colon in filename
Summary: Cannot send files with colon in filename
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-20 12:31 UTC by jakub.nowak98
Modified: 2023-06-20 12:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.