Filenames created with ASCII codes instead of actual characters (\x2d instead of -)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I installed canonical-livepatch on a Xenial system and, thanks to bzr failing due to backslashes in the filenames, noticed that filenames are being created with ASCII codes instead of hyphens.
I'm not sure if this is a snapd package bug or a canonical-livepatch snap bug. Either way, shouldn't filenames be created with the proper hypen (-) instead of ASCII code (\x2d)?
ubuntu@
unknown:
apparmor.
apparmor.
systemd/
systemd/
systemd/
systemd/
systemd/
systemd/
udev/
In the above status:
* systemd/
* systemd/
ubuntu@
./systemd/
./systemd/
Which causes bzr to fail due to the backslash:
ubuntu@
adding apparmor.
adding apparmor.
adding systemd/
bzr: ERROR: bzrlib.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
no_recurse, action=action, save=not dry_run)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
adder.
File "/usr/lib/
inv_path)
File "/usr/lib/
file_
File "/usr/lib/
return factory(file_id, name, parent_id)
File "/usr/lib/
super(
File "/usr/lib/
raise errors.
InvalidEntryName: Invalid entry name: snap-canonical\
bzr 2.7.0 on python 2.7.12 (Linux-
Ubuntu-
arguments: ['/usr/bin/bzr', 'add']
plugins: bash_completion
grep[2.7.0], launchpad[2.7.0], netrc_credentia
news_
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snapd 2.25
ProcVersionSign
Uname: Linux 4.4.0-78-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
Date: Tue Jun 13 17:49:21 2017
InstallationDate: Installed on 2017-06-04 (9 days ago)
InstallationMedia: Ubuntu-Server 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.8)
ProcEnviron:
TERM=screen.
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
This is LP bug #1650261.