Modify

Opened 18 years ago

Closed 18 years ago

#670 closed defect (fixed)

Error browsing a path that contains trailing slashes

Reported by: Lewis Baker Owned by: Lewis Baker
Priority: normal Component: PerforcePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

If the user enters a path to browse manually that contains a trailing slash then Trac generates an internal error with the following stack trace:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 299, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 189, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/log.py", line 74, in process_request
    normpath = repos.normalize_path(path)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 126, in normalize_path
    return self.repos.normalize_path(path)
  File "build/bdist.linux-i686/egg/p4trac/api.py", line 561, in normalize_path
  File "build/bdist.linux-i686/egg/p4trac/api.py", line 18, in normalisePath
  File "build/bdist.linux-i686/egg/p4trac/repos.py", line 177, in normalisePath
NameError: global name '_trailingSlashesRE' is not defined

Attachments (0)

Change History (1)

comment:1 Changed 18 years ago by Lewis Baker

Resolution: fixed
Status: newclosed

(In [1212]) Use correct variable name for path cleanup regexp. Fixes #670

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Lewis Baker.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.