Bug 488567

Summary: KDE Connect for Android fails to receive shared file whose names contain special characters
Product: [Applications] kdeconnect Reporter: hexclover
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: Android   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description hexclover 2024-06-16 07:07:45 UTC
SUMMARY
The KDE connect Android app cannot receive files whose name contain some special characters prohibited by the Android system, e.g. a colon :.

I think the App should either sanitize the file name automatically, e.g. replace the : with _, or hint about the possible reason for the failure.


STEPS TO REPRODUCE
1. On the PC, create some file whose name contain a colon, e.g. "log_20240616_14:59:45.txt"
2. Use KDE Connect to share the file to an Android phone

OBSERVED RESULT
Android app shows "Failed to receive file"

EXPECTED RESULT
The file should be received and stored, possibly under a sanitized name

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION