Bug 1327816

Summary: cannot copy between MTP mounts
Product: [Fedora] Fedora Reporter: Aleksandar Kostadinov <akostadi>
Component: gvfsAssignee: Ondrej Holy <oholy>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: akostadi, alexl, bnocera, oholy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-02 08:25:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
mtp-detect none

Description Aleksandar Kostadinov 2016-04-16 08:21:35 UTC
Description of problem:
> $ gvfs-copy --preserve -p 'mtp://[usb:002,114]/Card/carbon' 'mtp://[usb:002,114]/Phone/' 
> Error copying file mtp://[usb:002,114]/Card/carbon: Operation unsupported


Version-Release number of selected component (if applicable):
gvfs 1.26.3


How reproducible:
always

Additional info:
Copying between MTP and File system, also between filesystem and MTP works fine in GUI (Thunar 1.6.10) and cli. But not between 2 MTP points. This is highly annoying and suboptimal.

Also trying to open files from MTP mounts directly fails in many apps like xarchiver 0.5.4

Comment 1 Ondrej Holy 2016-04-28 14:41:56 UTC
Thanks for your bug report. 

Copying between two MTP mount points should work. I am just not sure about --preserve option. Does it fail also without --preserve option?

Another problem might be if your device doesn't support android extensions. Could you please provide output from "mtp-detect"?

Comment 2 Aleksandar Kostadinov 2016-05-02 07:04:32 UTC
Created attachment 1152863 [details]
mtp-detect

`preserve` option does not matter. Attaching mtp-detect report. The Phone is android so I guess extensions are there. Are they?

Comment 3 Aleksandar Kostadinov 2016-05-02 07:08:49 UTC
Just tested after all updates:

> $ gvfs-copy 'mtp://[usb:002,007]/Card/Download/object-oriented-vs-functional-programming.epub' 'mtp://[usb:002,007]/Phone/Download/'
> Error copying file mtp://[usb:002,007]/Card/Download/object-oriented-vs-functional-programming.epub: Operation unsupported

Comment 4 Ondrej Holy 2016-05-02 08:25:13 UTC
(In reply to Aleksandar Kostadinov from comment #2)
> Created attachment 1152863 [details]
> mtp-detect
> 
> `preserve` option does not matter. Attaching mtp-detect report. The Phone is
> android so I guess extensions are there. Are they?

Thanks for the reply. Unfortunately not all Android devices support MTP android extensions and thus is not possible to support some operations, see for more details:
https://bugzilla.gnome.org/show_bug.cgi?id=692419

Your device doesn't support those extensions:
Vendor extension description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0; microsoft.com/WMDRMPD:10.1; microsoft.com/playready:1.10;samsung.com/kies:2.1;samsung.com/sidesync3.0