Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#351 closed defect (fixed)

Error deleting pages with spaces in title when using AutoWikify

Reported by: rileypb@… Owned by: Alec Thomas
Priority: normal Component: AutoWikifyPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description (last modified by Alec Thomas)

Note: I'm assuming this is a bug with AutoWikify because the error crops up in that code. If this is not the case, let me know and I'll refile as a Trac defect.

  • in wiki with TRAC_ADMIN privileges
  • attempted to delete page titled 'Test This'
  • got this error:
Traceback (most recent call last):
  File "C:\PROGRA~1\Python\Lib\site-packages\trac\web\cgi_frontend.py", line 130, in run
    dispatch_request(req.path_info, req, env)
  File "C:\PROGRA~1\Python\Lib\site-packages\trac\web\main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\PROGRA~1\Python\Lib\site-packages\trac\web\main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\PROGRA~1\Python\Lib\site-packages\trac\wiki\web_ui.py", line 96, in process_request
    self._do_delete(req, db, page)
  File "C:\PROGRA~1\Python\Lib\site-packages\trac\wiki\web_ui.py", line 164, in _do_delete
    page.delete(version, db)
  File "C:\PROGRA~1\Python\Lib\site-packages\trac\wiki\model.py", line 98, in delete
    listener.wiki_page_deleted(self)
  File "build\bdist.win32\egg\tracautowikify\autowikify.py", line 32, in wiki_page_deleted
  File "C:\Program Files\Python\lib\sets.py", line 534, in remove
    del self._data[element]
KeyError: 'Test This'

Attachments (0)

Change History (2)

comment:1 Changed 19 years ago by Alec Thomas

Description: modified (diff)

comment:2 Changed 19 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

(In [736]) Fixes #351

Modify Ticket

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