Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#4045 closed defect (fixed)

KeyError: 'query_href'

Reported by: ThurnerRupert <rupert.thurner@…> Owned by: Jonas Borgström
Priority: high Milestone: 0.10.1
Component: general Version: devel
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

after upgrading to 0.10.1-dev we get frequently an error

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 356, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 224, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 326, in process_request
    add_link(req, 'up', req.session['query_href'])
KeyError: 'query_href'

what could this be?

upgrade from 0.10 was done by run python setup again (without deleting the files already there).

Attachments (0)

Change History (1)

comment:1 by ThurnerRupert, 18 years ago

Resolution: fixed
Status: newclosed

the trac database got corrupted, even if we have no idea why.

the symptom was that we could not enter session data like email address and name. doing a select showed other users rows as result. deleting these other users rows had the effect that another users rows where shown:

sqlite> select * from session_attribute where sid = 'my-id';
sid   ...   
---------------------
some  ...   ...

the following solved the problem:

$ sqlite3 wfi/db/trac.db

sqlite> PRAGMA integrity_check;
*** in database main ***
On tree page 15580 cell 62: 2nd reference to page 15574
On tree page 15580 cell 62: Child page depth differs

sqlite> vacuum;

sqlite> PRAGMA integrity_check;
ok

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.