Bug 402869 - Add write permission to files copied from an MTP device
Summary: Add write permission to files copied from an MTP device
Status: REOPENED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 18.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-04 20:54 UTC by martonmiklos
Modified: 2022-10-18 17:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martonmiklos 2019-01-04 20:54:22 UTC
SUMMARY

When copying files from an MTP or PTP device (such a digital camera) the copied files will have readonly permissions for the owner as well. It is pretty inconvenient because before I edit those files I have to change permissions. 
I understand that it makes sense to keep the file permissions during the copy operation, but this case is different: I can delete files from the MTP/PTP filesystem.

STEPS TO REPRODUCE
1. Connect an MTP device which contains some files
2. Copy a file to a location where you have write permissions

OBSERVED RESULT
The copied file will have readonly permissions

EXPECTED RESULT
The copied file should have RW permissions for the copying user


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 16.04.3
(available in About System)
KDE Plasma Version: 16.04.3
KDE Frameworks Version: 5.36.0
Qt Version: 5.6.1

ADDITIONAL INFORMATION
Comment 1 Julian Steinmann 2019-01-05 19:29:30 UTC
Thanks for reporting this bug. I have tried to reproduce this behavior on my local machine connecting my phone via MTP and copied several files, and all permissions are copied correctly for me. Your bug was most likely fixed with our new MTP implementation (first available with Dolphin 18.12.0 and KDE Frameworks 5.51 if I am not mistaken). 

We can sadly not backport this implementation to older versions of Dolphin, so you'd need to update your system to the latest version of Dolphin. If the bug does still occur with Dolphin 18.12.0, please reopen this bug report. Thanks!
Comment 2 martonmiklos 2019-01-05 19:50:25 UTC
Hi Julian!

Many thanks for pointing to it! Unfortunately it will took a while before I can test it on Ubuntu but it is good to know that it is fixed .


(In reply to Julian Schraner from comment #1)
> Thanks for reporting this bug. I have tried to reproduce this behavior on my
> local machine connecting my phone via MTP and copied several files, and all
> permissions are copied correctly for me. Your bug was most likely fixed with
> our new MTP implementation (first available with Dolphin 18.12.0 and KDE
> Frameworks 5.51 if I am not mistaken). 
> 
> We can sadly not backport this implementation to older versions of Dolphin,
> so you'd need to update your system to the latest version of Dolphin. If the
> bug does still occur with Dolphin 18.12.0, please reopen this bug report.
> Thanks!
Comment 3 martonmiklos 2019-06-26 06:55:13 UTC
I have upgrad.ed my machine to Ubuntu 19.04 which ships with KDE Frameworks 5.56.0 and Dolphin 18.12.3. The pasted files still does not have writable permissions:
https://imgur.com/a/Lr49Ber
Comment 4 martonmiklos 2019-06-26 07:00:14 UTC
One thing what I need to note that I have copied the files from a camera://whatever url not from an mtp:// one.