Crash on filename pattern

Bug #538633 reported by joseche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

joseche@dante:~/projects/al-realestatecr.com/site$ bzr add *
adding administrator
adding cache
adding CHANGELOG.php
adding components
adding components\com_properties\consult_mail.html
bzr: ERROR: bzrlib.errors.InvalidEntryName: Invalid entry name: components\com_properties\consult_mail.html

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 659, in run
    no_recurse, action=action, save=not dry_run)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 49, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 417, in smart_add
    added.extend(_add_one_and_parent(self, inv, None, rf, kind, action))
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 674, in _add_one_and_parent
    _add_one(tree, inv, parent_ie, path, kind, action)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 690, in _add_one
    file_id=file_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 926, in make_entry
    return make_entry(kind, name, parent_id, file_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 2324, in make_entry
    return factory(file_id, name, parent_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 537, in __init__
    super(InventoryFile, self).__init__(file_id, name, parent_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 216, in __init__
    raise errors.InvalidEntryName(name=name)
InvalidEntryName: Invalid entry name: components\com_properties\consult_mail.html

bzr 2.1.0 on python 2.5.4 (Linux-2.6.32-trunk-486-i586-with-debian-squeeze-sid)
arguments: ['/usr/bin/bzr', 'add', 'administrator', 'cache', 'CHANGELOG.php', 'components', 'components\\com_properties\\consult_mail.html', 'configuration.php', 'COPYRIGHT.php', 'CREDITS.php', 'htaccess.txt', 'images', 'includes', 'index2.php', 'index.php', 'INSTALL.php', 'language', 'libraries', 'LICENSE.php', 'LICENSES.php', 'logs', 'media', 'modules', 'plugins', 'robots.txt', 'templates', 'tmp', 'xmlrpc']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [2.1.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [2.1.0]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [2.1.0]
  news_merge /usr/lib/python2.5/site-packages/bzrlib/plugins/news_merge [2.1.0]

*** 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://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
joseche (joseche) wrote :

This happens when the filename in linux has "\" in it

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.