Modify ↓
Opened 21 years ago
Closed 21 years ago
#256 closed defect (fixed)
Authentication failures with 0.7-pre
Reported by: | 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 , 21 years ago
comment:2 by , 21 years ago
There are no cookies set for the subdomain trac is running under, or the parent domain.
comment:3 by , 21 years ago
Status: | new → 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!
Note:
See TracTickets
for help on using tickets.
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?