FS#64787 - Cannot copy files from GVFS-mounted FTP server on Linux kernel 5.4

Attached to Project: Arch Linux
Opened by Kerrick Staley (KerrickStaley) - Tuesday, 10 December 2019, 05:33 GMT
Last edited by Balló György (City-busz) - Friday, 09 June 2023, 00:04 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
When I mount a FTP server using GNOME Virtual Filesystem and try to copy a file from it, I get the error "cp: error reading /run/user/1000/gvfs/ftp:host=myhost.com/path/to/the/file: Operation not supported".

This error happens on Linux kernel 5.4.arch1-1 and later, but not on 5.3.9.1-1.

I am using the normal "linux" package, not a custom kernel.

Additional info:
I tested with gvfs versions 1.40.2 and 1.42.2 (the latest); the issue repros with both versions on Linux 5.4 and does not repro on either version on Linux 5.3.9.

I *am* able to copy files using Nautilus's copy commands. Maybe Nautilus is using a different sequence of syscalls to copy files?

Steps to reproduce:
1. Use Nautilus to mount an FTP server (click "Other Locations" in the sidebar, then enter server address in bottom bar, and click connect).
2. Open the FTP server's directory in a terminal (right click -> Open in Terminal).
3. Copy a file from the FTP server to somewhere (e.g. cp ./foo ~/).
This task depends upon

Closed by  Balló György (City-busz)
Friday, 09 June 2023, 00:04 GMT
Reason for closing:  Fixed
Comment by Eric Hooks (ebhooks21) - Friday, 13 December 2019, 14:08 GMT
I have the same issue, though it also affects Thunar and Gigolo. The issue does not occur if using a third party FTP program, such as Filezilla.

Kernel Version: 5.4.2-arch1-1
GVFS:
gvfs 1.42.2-1
gvfs-smb 1.42.2-1
Comment by Kerrick Staley (KerrickStaley) - Monday, 23 December 2019, 04:55 GMT Comment by Balló György (City-busz) - Friday, 09 June 2023, 00:04 GMT
Upstream said that it was fixed, so I assume that it no longer happens.

Loading...