[Bug 1035045] Re: bzr refused to commit the filename "C:\nppdf32Log\debuglog.txt"

Jamie Strandboge jamie at ubuntu.com
Thu Mar 10 15:18:36 UTC 2016


This is now happening when using etckeeper on 16.04 with snappy. Eg:

$ sudo -H bzr add .
adding systemd/system/snaps-cap\x2dtest.sideload-LSXRFfhCCLCY.mount
bzr: ERROR: bzrlib.errors.InvalidEntryName: Invalid entry name: snaps-cap\x2dtest.sideload-LSXRFfhCCLCY.mount

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 842, in run
    no_recurse, action=action, save=not dry_run)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 453, in smart_add
    adder.add(file_list, recurse=recurse)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 764, in add
    inv_path)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 628, in _add_one_and_parent
    file_id=file_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 2234, in make_entry
    return factory(file_id, name, parent_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 422, in __init__
    super(InventoryFile, self).__init__(file_id, name, parent_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 222, in __init__
    raise errors.InvalidEntryName(name=name)
InvalidEntryName: Invalid entry name: snaps-cap\x2dtest.sideload-LSXRFfhCCLCY.mount


** Information type changed from Private to Public

** Description changed:

+ Former titile: 'bzr refused to commit the filename
+ "C:\nppdf32Log\debuglog.txt"'
+ 
  To reproduce on an ubuntu system (oineiric, i386):
  1) create a new folder repo and repo\log
  2) Copy the file C:\nppdf32Log\debuglog.txt into the log folder
  2) start a bzr repository (bzr init) in repo
  3) bzr add log
  
  $ bzr add log/
  adding log
  adding log/C:\nppdf32Log\debuglog.txt
  bzr: ERROR: bzrlib.errors.InvalidEntryName: Invalid entry name: C:\nppdf32Log\debuglog.txt
  
  Traceback (most recent call last):
-   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 946, in exception_to_return_code
-     return the_callable(*args, **kwargs)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1150, in run_bzr
-     ret = run(*run_argv)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 699, in run_argv_aliases
-     return self.run(**all_cmd_args)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 721, in run
-     return self._operation.run_simple(*args, **kwargs)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
-     self.cleanups, self.func, *args, **kwargs)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
-     result = func(*args, **kwargs)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 716, in run
-     no_recurse, action=action, save=not dry_run)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
-     return unbound(self, *args, **kwargs)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 452, in smart_add
-     adder.add(file_list, recurse=recurse)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 744, in add
-     this_ie = self._add_one_and_parent(parent_ie, directory, kind, inv_path)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 615, in _add_one_and_parent
-     file_id=file_id)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 2263, in make_entry
-     return factory(file_id, name, parent_id)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 420, in __init__
-     super(InventoryFile, self).__init__(file_id, name, parent_id)
-   File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 220, in __init__
-     raise errors.InvalidEntryName(name=name)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 946, in exception_to_return_code
+     return the_callable(*args, **kwargs)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1150, in run_bzr
+     ret = run(*run_argv)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 699, in run_argv_aliases
+     return self.run(**all_cmd_args)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 721, in run
+     return self._operation.run_simple(*args, **kwargs)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
+     self.cleanups, self.func, *args, **kwargs)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
+     result = func(*args, **kwargs)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 716, in run
+     no_recurse, action=action, save=not dry_run)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
+     return unbound(self, *args, **kwargs)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 452, in smart_add
+     adder.add(file_list, recurse=recurse)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 744, in add
+     this_ie = self._add_one_and_parent(parent_ie, directory, kind, inv_path)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 615, in _add_one_and_parent
+     file_id=file_id)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 2263, in make_entry
+     return factory(file_id, name, parent_id)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 420, in __init__
+     super(InventoryFile, self).__init__(file_id, name, parent_id)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 220, in __init__
+     raise errors.InvalidEntryName(name=name)
  InvalidEntryName: Invalid entry name: C:\nppdf32Log\debuglog.txt
  
  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: bzr 2.4.1-1ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-23.39-generic-pae 3.0.36
  Uname: Linux 3.0.0-23-generic-pae i686
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  BzrDebugFlags: set()
  BzrVersion: 2.4.1
  CommandLine: ['/usr/bin/bzr', 'add', 'auctions/']
  CrashDb: bzr
  Date: Thu Aug  9 21:12:09 2012
  ExecutablePath: /usr/bin/bzr
  FileSystemEncoding: UTF-8
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  InterpreterPath: /usr/bin/python2.7
  Locale: nl_NL.UTF-8
  PackageArchitecture: all
  Platform: Linux-3.0.0-23-generic-pae-i686-with-Ubuntu-11.10-oneiric
  ProcCmdline: /usr/bin/python /usr/bin/bzr add auctions/
  PythonVersion: 2.7.2
  SourcePackage: bzr
  Title: bzr crashed with InvalidEntryName in __init__(): Invalid entry name: C:\nppdf32Log\debuglog.txt
  UpgradeStatus: Upgraded to oneiric on 2012-02-01 (190 days ago)
  UserEncoding: UTF-8
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

** Summary changed:

- bzr refused to commit the filename "C:\nppdf32Log\debuglog.txt"
+ bzr refused to commit systemd-escaped filenames

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/1035045

Title:
  bzr refused to commit systemd-escaped filenames

Status in bzr package in Ubuntu:
  New

Bug description:
  Former titile: 'bzr refused to commit the filename
  "C:\nppdf32Log\debuglog.txt"'

  To reproduce on an ubuntu system (oineiric, i386):
  1) create a new folder repo and repo\log
  2) Copy the file C:\nppdf32Log\debuglog.txt into the log folder
  2) start a bzr repository (bzr init) in repo
  3) bzr add log

  $ bzr add log/
  adding log
  adding log/C:\nppdf32Log\debuglog.txt
  bzr: ERROR: bzrlib.errors.InvalidEntryName: Invalid entry name: C:\nppdf32Log\debuglog.txt

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 946, in exception_to_return_code
      return the_callable(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1150, in run_bzr
      ret = run(*run_argv)
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 699, in run_argv_aliases
      return self.run(**all_cmd_args)
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 721, in run
      return self._operation.run_simple(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
      self.cleanups, self.func, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 716, in run
      no_recurse, action=action, save=not dry_run)
    File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
      return unbound(self, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 452, in smart_add
      adder.add(file_list, recurse=recurse)
    File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 744, in add
      this_ie = self._add_one_and_parent(parent_ie, directory, kind, inv_path)
    File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 615, in _add_one_and_parent
      file_id=file_id)
    File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 2263, in make_entry
      return factory(file_id, name, parent_id)
    File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 420, in __init__
      super(InventoryFile, self).__init__(file_id, name, parent_id)
    File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 220, in __init__
      raise errors.InvalidEntryName(name=name)
  InvalidEntryName: Invalid entry name: C:\nppdf32Log\debuglog.txt

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: bzr 2.4.1-1ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-23.39-generic-pae 3.0.36
  Uname: Linux 3.0.0-23-generic-pae i686
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  BzrDebugFlags: set()
  BzrVersion: 2.4.1
  CommandLine: ['/usr/bin/bzr', 'add', 'auctions/']
  CrashDb: bzr
  Date: Thu Aug  9 21:12:09 2012
  ExecutablePath: /usr/bin/bzr
  FileSystemEncoding: UTF-8
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  InterpreterPath: /usr/bin/python2.7
  Locale: nl_NL.UTF-8
  PackageArchitecture: all
  Platform: Linux-3.0.0-23-generic-pae-i686-with-Ubuntu-11.10-oneiric
  ProcCmdline: /usr/bin/python /usr/bin/bzr add auctions/
  PythonVersion: 2.7.2
  SourcePackage: bzr
  Title: bzr crashed with InvalidEntryName in __init__(): Invalid entry name: C:\nppdf32Log\debuglog.txt
  UpgradeStatus: Upgraded to oneiric on 2012-02-01 (190 days ago)
  UserEncoding: UTF-8
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/1035045/+subscriptions



More information about the foundations-bugs mailing list