Modify ↓
Ticket #256 (closed defect: fixed)
Opened 8 years ago
Last modified 8 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: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 8 years ago by jonas
comment:2 Changed 8 years ago by jon@…
There are no cookies set for the subdomain trac is running under, or the parent domain.
comment:3 Changed 8 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!
comment:4 Changed 8 years ago by jonas
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in [419].
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?