colon in name causes gvfs hang when copying to phone

Bug #1921651 reported by Dan Kegel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gvfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

A colon in a file or directory name causes the operation to hang when copying to a phone via ptp.

To reproduce:

On android phone:
1) plug usb cable between phone and computer
2) Go to settings. Search for USB. Click on "Standard USB configuration".
  (Alternately, notice mystery status card at very bottom of notifications saying "Android system - charging over USB, click for options", and click on it.)
3) Select PTP.

Then on Ubuntu 20.04 (and probably other recent vintages as well):

0) observe your phone popping up in dock and in Files
1) cp good.mp3 bad:.mp3
2) xdg-open .
3) In dock or Files, also open your phone
4) drag good.mp3 to your phone, note that it succeeds
5) drag bad:.mpd to your phone, note that it hangs

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gvfs 1.44.1-1ubuntu1
ProcVersionSignature: Ubuntu 5.8.0-48.54~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-48-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Mar 28 15:28:32 2021
InstallationDate: Installed on 2020-10-17 (162 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gvfs
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dan Kegel (dank) wrote :
Revision history for this message
Dan Kegel (dank) wrote :

Also: if the colon is in the name of a directory you are copying, the directory gets created with the colon in the name, but any attempt to put files in it hangs.

Deleting the colon-named things via Files does seem to work, though.

And transferring files with spaces, dashes, and umlauts in the names works fine, too. It's just the colon that causes trouble.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.