Modify

Opened 18 years ago

Closed 18 years ago

#672 closed defect (fixed)

WR plugin fails to rename attachment dir if the name contains escaped chars

Reported by: bernd.tegge@… Owned by: Noah Kantrowitz
Priority: low Component: WikiRenamePlugin
Severity: minor Keywords:
Cc: Trac Release: 0.10

Description

I accidentally created a wiki page whose name contained a comma 'People/Juergen,'. The rename failed to rename the attachment dir, because the comma in the dir name is escaped 'People/Juergen%2C'. It did rename

Trac Version: 0.10b1, however the the project was recently upgraded from 0.9.4, were that page had been created.

Traceback (most recent call last):

File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 335, in dispatch_request

dispatcher.dispatch(req)

File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 220, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/local/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r3370-py2.4.egg/webadmin/web_ui.py", line 109, in process_request

path_info)

File "build/bdist.linux-i686/egg/wikirename/web_ui.py", line 48, in process_admin_request File "build/bdist.linux-i686/egg/wikirename/util.py", line 47, in rename_page File "/usr/lib/python2.4/os.py", line 201, in renames

rename(old, new)

OSError: [Errno 2] No such file or directory

Attachments (0)

Change History (1)

comment:1 Changed 18 years ago by Noah Kantrowitz

Resolution: fixed
Status: newclosed

(In [1543]) Correctly handle funny characters in page names when renaming. (fixes #672)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.