Edgewall Software

Ticket #256 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Authentication failures with 0.7-pre

Reported by: jon@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: devel
Severity: critical Keywords:
Cc:

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

Change History

Changed 5 years ago by jonas

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?

Changed 5 years ago by jon@…

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

Changed 5 years ago by jonas

  • status changed from new to assigned

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!

Changed 5 years ago by jonas

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [419].

Add/Change #256 (Authentication failures with 0.7-pre)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.