Edgewall Software

Ticket #3059 (closed defect: invalid)

Opened 3 years ago

Last modified 20 months ago

Assertion with environments which directory names contain hyphens or underscores.

Reported by: a-thor@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc:

Description (last modified by cboos) (diff)

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.

Attachments

Change History

Changed 3 years ago by ssalmine@…

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.

Changed 3 years ago by cboos

  • priority changed from low to normal
  • description modified (diff)

Changed 2 years ago by devin@…

I've been trying to set up authorization on a tracd instance running in a shared hosting environment and have encountered this "Authentication information not available" problem. My home directory on the server contains a hyphen, and several directories in the path to the project contain hyphens or underscores.

Running tracd/0.10dev proxied through apache/2.0.52, python/2.3.4. Redhat CentOS 4.2final

Changed 2 years ago by Devin Ben-Hur <devin@…>

After further experimentation, hyphens/underscores seem to have nothing to do with this. I renamed or symlinked hyphen-less names and restarted everything. Still get "assert req.remote_user, 'Authentication information not available.'" error when trying login link.

Running tracd daemon proxied by apache; apache has digest authorization enabled and successfully challenges and passes users using the same digest file as trac's --auth option points at.

Changed 2 years ago by cboos

Devin, it's probably the way you start tracd which is in cause, here. Did you follow carefully the TracStandalone#UsingAuthentication instructions?

Changed 20 months ago by cboos

  • status changed from new to closed
  • resolution set to invalid

This was most likely a misconfiguration of the authentication settings.

Refer to TracFaq#WhataboutthisAuthenticationinformationnotavailable.error.

Add/Change #3059 (Assertion with environments which directory names contain hyphens or underscores.)

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.