Ticket #900 (closed defect: worksforme)
tracd login, internal error
| Reported by: | sky-g | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web frontend/tracd | Version: | 0.7.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Traceback
Oops...
Trac detected an internal error:
'int' object has no attribute 'lower'
Traceback (most recent call last):
File "/usr/bin/tracd", line 233, in do_trac_req
self.do_real_trac_req()
File "/usr/bin/tracd", line 243, in do_real_trac_req
self.remote_user = self.env.auth.do_auth(self)
File "/usr/bin/tracd", line 99, in do_auth
if not 'Authorization' in req.headers or \
File "/usr/lib/python2.2/rfc822.py", line 390, in __getitem__
return self.dict[name.lower()]
AttributeError: 'int' object has no attribute 'lower'
Related info
tracd is started with:
#! /bin/sh
db_name=trac
repos=/var/www/trac
port=9000
tracd=/usr/bin/tracd
pythonpath=/usr/local/lib/svn-python:/usr/lib/python2.2/site-packages
libpath=/usr/local/lib
htd_passwords=/var/www/trac/htdigest
#-----------------------------------------------------------
LD_LIBRARY_PATH=$libpath \
PYTHONPATH=$pythonpath \
$tracd --port $port --auth $db_name,$htd_passwords,trac $repos &
"repos" is not the subversion repository of course, but the trac environment.
Notes / ideas:
- Tried to make db_name and last directory in "repos" the same, as prescribed by various pages. (Is this understood correctly?)
- The project name given when doing initenv, which appears in headers of HTML pages - does that matter? (tried redoing it with same name, does not seem to matter...)
- Just noticed, the "realm" is not a complete or correct hostname if that matters, just "trac"
/var/www/trac/htdigest contains only one line:
gan:trac:44ab342...<the hashed password>...
with these permissions (nothing odd I guess, probably shouldn't be world readable though...)
-rwxr-xr-x 1 root root 42 Nov 9 18:52 /var/www/trac/htdigest
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


