Bug 458937

Summary: rename over existing file operation not permitted
Product: [Applications] kdeconnect Reporter: Fernando Rodriguez <frodriguez.developer>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: frodriguez.developer
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fernando Rodriguez 2022-09-09 22:07:43 UTC
SUMMARY

When using kdeconnect's "Browse this device" feature to mount the device's file system I cannot rename to a file that already exists. This is a problem because I use unison to sync my music library and when I file changes unison will copy the file to a temp file and then rename it over the old one and this gives an 'Operation not permitted' error.


STEPS TO REPRODUCE
1.  Mount the filesystem on the device by using the 'Browse this device' feature on kdeconnect.
2. On the terminal navigate to the directory where the device is mounted
3.  Run 'touch file1 file2' and then 'mv file1 file2'.

OBSERVED RESULT
The mv command fails with 'Operation not permitted'

EXPECTED RESULT

file1 overwrites file2


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.24.6
(available in About System)
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.96.0
Qt Version:  5.15.5

ADDITIONAL INFORMATION
Android App version: 1.19.1