colon in name causes gvfs hang when copying to phone
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
ProcVersionSign
Uname: Linux 5.8.0-48-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
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-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gvfs
UpgradeStatus: No upgrade log present (probably fresh install)
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.