Edgewall Software

Opened 18 years ago

Last modified 17 years ago

#3059 closed defect

Assertion with environments which directory names contain hyphens or underscores. — at Version 2

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

Description (last modified by Christian Boos)

After upgrading Trac from one of the 0.9 betas to the current trunk (checked out few days ago) I got following error while trying to login into some of the Trac environments: Python traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/auth.py", line 80, in process_request
    self._do_login(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/auth.py", line 101, in _do_login
    assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available.

After speding some time investigatin the matter I found that "problem" environments all have hyphens in the name of their storage directories. That was not a problem with old (one of 0.9bX) version of Trac. I am not completely sure that problem is in Trac and not in other libraries, as they were upgraded too in the process :) My current environment is RHEL AS 4. Python 2.3 (that comes with it), Apache httpd 2.0.52, mod_python 3.1.4, sqlite 3.2.2, pysqlite 1.1.6. The above error message is taken form another server running on SLackware 10.2 with Python 2.4.1 - so it is obviously not a Python problem. Well, I'm getting short of time right now, but will be glad to provide any additional information in case you need it.

Change History (2)

comment:1 by ssalmine@…, 18 years ago

Trac 0.9.5 has this problem also.

It only happens when clicking the "login" button, this problem does not occur if project has forced authentication.

comment:2 by Christian Boos, 18 years ago

Description: modified (diff)
Priority: lownormal
Note: See TracTickets for help on using tickets.