Edgewall Software
Modify

Opened 21 years ago

Closed 21 years ago

#256 closed defect (fixed)

Authentication failures with 0.7-pre

Reported by: jon@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When attempting to view any page served by trac.cgi I am given the following message:

Trac detected an internal error:

0

With this backtrace:

Traceback (most recent call last):
  File "/usr/lib/python2.1/site-packages/trac/core.py", line 424, in cgi_start
    real_cgi_start()
  File "/usr/lib/python2.1/site-packages/trac/core.py", line 388, in real_cgi_start
    authenticator = auth.Authenticator(database, req)
  File "/usr/lib/python2.1/site-packages/trac/auth.py", line 29, in __init__
    if 'trac_auth' in req.incookie:
  File "/usr/lib/python2.1/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 0

Attachments (0)

Change History (4)

comment:1 by Jonas Borgström, 21 years ago

This looks like you have some malformed cookie that the Cookie-module chokes on.

Can you try to remove all cookies (for that site) from the browser and see if that helps?

comment:2 by jon@…, 21 years ago

There are no cookies set for the subdomain trac is running under, or the parent domain.

comment:3 by Jonas Borgström, 21 years ago

Status: newassigned

Ok, I know what it is now. Python2.1 doesn't like stuff like this:

if 'key' in cookie:

This should work instead:

if cookie.has_key('key'):

I'll commit a fix for this later today. Thanks for your report!

comment:4 by Jonas Borgström, 21 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [419].

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.