Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1863 closed defect (fixed)

Oops w/ page creation

Reported by: Emmanuel Blot Owned by: Matthew Good
Priority: low Milestone: 0.9
Component: wiki system Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

Error

 Trac detected an internal error:

_pages

From Trac trunk [2033]

Step to reproduce

  • Create a new page, save it
  • Once displayed, choose Delete this version
  • Confirm deletion of version 0
  • (re) Create the same page, from the Describe <page> here
  • [Preview works]
  • Attempt to save the page

Python traceback

Traceback (most recent call last):
  File "/local/engine/trac/trac/web/modpython_frontend.py", line 204, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/local/engine/trac/trac/web/main.py", line 433, in dispatch_request
    dispatcher.dispatch(req)
  File "/local/engine/trac/trac/web/main.py", line 293, in dispatch
    resp = chosen_handler.process_request(req)
  File "/local/engine/trac/trac/wiki/web_ui.py", line 95, in process_request
    self._do_save(req, db, page)
  File "/local/engine/trac/trac/wiki/web_ui.py", line 197, in _do_save
    req.remote_addr)
  File "/local/engine/trac/trac/wiki/model.py", line 140, in save
    listener.wiki_page_added(self)
  File "/local/engine/trac/trac/wiki/api.py", line 130, in wiki_page_added
    self._pages[page.name] = True
  File "/local/engine/trac/trac/core.py", line 153, in __getattr__
    raise AttributeError, name
AttributeError: _pages

Attachments (0)

Change History (6)

comment:1 by Emmanuel Blot, 14 years ago

Additional note:

It seems the page is successfully created/saved in the SQLite DB. The trouble occurs after the page is stored in the DB.

comment:2 by Christopher Lenz, 14 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

Is this consistently reproducable for you? What front-end are you using (CGI, mod_python, tracd)?

I just tried here with CGI and mod_python and am not seeing the error.

comment:3 by Christopher Lenz, 14 years ago

Oh, and if you're running mod_python, are you using a threaded MPM?

comment:4 by Matthew Good, 14 years ago

Owner: changed from Christopher Lenz to Matthew Good
Status: assignednew

Ok, I'm encountering a similar error under mod_python when I try to delete the last version of a page. I'll investigate further.

comment:5 by Matthew Good, 14 years ago

Resolution: fixed
Status: newclosed

The _pages attribute was renamed to _index in [1977], but a few occurrences were missed.

This is fixed in [2255]

comment:6 by Emmanuel Blot, 14 years ago

I want to apologize here, I missed the feedback requests from cmlenz on this ticket. Sorry.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.