Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

#10567 closed defect (worksforme)

tracd fails to authenticate after first successfull login

Reported by: ceremcem@… Owned by:
Priority: highest Milestone:
Component: web frontend/tracd Version: 0.12.2
Severity: blocker Keywords: authentication, needinfo
Cc: ceremcem@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

  1. Use tracd to serve a repository.

1.1. Configure tracd to use htpasswd or htdigest file.

  1. Go to trac repository and try to login.
  2. Fill the prompt (username, password)

3.1. You will successfully log in.

  1. Logout and click to "Login" again.
  2. Fill the prompt, click "OK".
  3. Go to step 5. as many as you like. If you get bored, continue with step 7.
  4. Restart tracd daemon.
  5. Go to step 2.

I can not find a work-around for this. I can not continuously restart tracd webserver. I tried to use fcgi, I could authenticate via Nginx as expected but that time I face with another problem while submitting new ticket ("…Do you have cookies enabled?" thing).

This issue also true for Trac 0.11.7.

I'm using Ubuntu Server 11.04 for Trac 0.12.2, Ubuntu Desktop 10.04 for Trac 0.11.7.

Attachments (0)

Change History (5)

comment:1 by Remy Blank, 12 years ago

Keywords: needinfo added

Anything in the log when logging in fails that could help us diagnose this?

comment:2 by Christian Boos, 12 years ago

Also, the fact that you can redo 4./5. multiple times suggests that something strange is going on with your browser. Normally, you won't get the prompt the second time, but you'll directly log in again as the same user (that's a "feature" of how HTTP authentication works, which is usually seen as a huge annoyance, see #791). I'm also not completely ruling out that you actually tried to report that problem ;-)

in reply to:  1 comment:3 by Cerem Cem ASLAN <ceremcem@…>, 12 years ago

Replying to rblank:

Anything in the log when logging in fails that could help us diagnose this?

Here is tracd output:

ceremcem@cca-peynir:dev$ tracd --host=127.0.0.1 --port=9090 --basic-auth="*,/home/ceremcem/dev/trac.htpasswd,trac" /home/ceremcem/dev/tracdeneme
Server starting in PID 6945.
Serving on http://127.0.0.1:9090/
/usr/lib/python2.6/dist-packages/psycopg2/__init__.py:54: RuntimeWarning: can't import decimal module probably needed by _psycopg
  RuntimeWarning)
127.0.0.1 - - [15/Feb/2012 17:14:20] "GET /tracdeneme/login HTTP/1.1" 302 -
127.0.0.1 - - [15/Feb/2012 17:14:22] "GET /tracdeneme HTTP/1.1" 200 -
127.0.0.1 - - [15/Feb/2012 17:14:23] "GET /tracdeneme/chrome/site/your_project_logo.png HTTP/1.1" 404 -
127.0.0.1 - - [15/Feb/2012 17:14:23] "GET /tracdeneme/chrome/common/js/jquery.js HTTP/1.1" 404 -
127.0.0.1 - - [15/Feb/2012 17:14:23] "GET /tracdeneme/chrome/site/your_project_logo.png HTTP/1.1" 404 -
b/2012 17:14:23] "GET /tracdeneme/chrome/site/your_project_logo.png HTTP/1.1" 404 -
127.0.0.1 - - [15/Feb/2012 17:16:49] "GET /tracdeneme/logout HTTP/1.1" 302 -
127.0.0.1 - - [15/Feb/2012 17:16:49] "GET /tracdeneme HTTP/1.1" 200 -
127.0.0.1 - - [15/Feb/2012 17:16:49] "GET /tracdeneme/chrome/common/js/jquery.js HTTP/1.1" 404 -
127.0.0.1 - - [15/Feb/2012 17:16:49] "GET /tracdeneme/chrome/site/your_project_logo.png HTTP/1.1" 404 -

As expected until now. Here we go with the same credentials:

127.0.0.1 - - [15/Feb/2012 17:17:03] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:12] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:18] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:19] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:20] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:21] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:22] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:23] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:23] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:24] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:25] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:26] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:27] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:28] "GET /tracdeneme/login HTTP/1.1" 401 -
127.0.0.1 - - [15/Feb/2012 17:17:28] "GET /tracdeneme/login HTTP/1.1" 401 -

comment:4 by Cerem Cem ASLAN <ceremcem@…>, 12 years ago

Hmm… Unexpectedly, the bug disappeared o_O (A restart which I did some time ago might cause the bug has been disappear…)

comment:5 by Cerem Cem ASLAN <ceremcem@…>, 12 years ago

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.