paths with semi colon or square brackets cause re error in glob_expand

Bug #393399 reported by John
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

When using Tortoise Bazaar on Windows XP and adding a file not yet under version control:

bzr: ERROR: sre_constants.error: bad character range

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 729, in exception_to_return_code
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "C:/Programme/Bazaar/plugins\qbzr\lib\commands.py", line 753, in run
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 595, in run
  File "bzrlib\commands.pyo", line 313, in _maybe_expand_globs
  File "bzrlib\win32utils.pyo", line 440, in glob_expand
  File "glob.pyo", line 15, in glob
  File "glob.pyo", line 41, in iglob
  File "glob.pyo", line 57, in glob1
  File "fnmatch.pyo", line 48, in filter
  File "bzrlib\lazy_regex.pyo", line 69, in __getattr__
  File "bzrlib\lazy_regex.pyo", line 55, in _compile_and_collapse
  File "bzrlib\lazy_regex.pyo", line 61, in _real_re_compile
  File "re.pyo", line 188, in compile
  File "re.pyo", line 241, in _compile
error: bad character range

bzr 1.16 on python 2.5.2 (win32)
arguments: ['C:\\Programme\\Bazaar\\bzr.exe', 'qsubprocess', '"add" "projects/coco/[ALPHANUM 1.0.0; ALPHANUM 2.3.3.4; ALPHANUM].zip"']
encoding: 'cp1252', fsenc: 'mbcs', lang: 'DE'
plugins:
  bzrtools C:\Programme\Bazaar\plugins\bzrtools [1.16]
  launchpad C:\Programme\Bazaar\plugins\launchpad [1.16]
  netrc_credential_store C:\Programme\Bazaar\plugins\netrc_credential_store [1.16]
  qbzr C:\Programme\Bazaar\plugins\qbzr [0.11]
  rebase C:\Programme\Bazaar\plugins\rebase [0.5]
  svn C:\Programme\Bazaar\plugins\svn [0.6.1]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Tags: win32
Revision history for this message
Martin Pool (mbp) wrote :

This looks like a bug in expand globs; that's only active on win32 but it can be tested elsewhere.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
summary: - paths with semi colon or square brackets make bazaar crash when adding
+ paths with semi colon or square brackets cause re error in glob_expand
Jelmer Vernooij (jelmer)
tags: added: win32
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
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.