Ticket #3233 (closed defect: fixed)

Opened 5 years ago

Last modified 2 years ago

[patch] Infinite redirect loop after resetting the password

Reported by: chutz Assigned to: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: major Keywords: redirect
Cc: pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, foo.lim@carbonflow.com, ferringb@gmail.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com, robison.sousa@agu.gov.br Trac Release: 0.11

Description

After resetting my password on Trac 0.11dev-r7189 (at http://trac.pioto.org/paludis/) I can no longer login. If I try to login with the new password I get in an infinite redirection loop (HTTP 302) to http://trac.pioto.org/paludis/prefs/account

I can only assume that this was introduced with the implementation of Ticket #1427.

I reproduced it by

  1. Creating a new account
  2. Login, post a comment on a ticket
  3. Logout
  4. Reset the password
  5. Try to login with the new password (I could not)

Attachments

redirect-fix.patch (0.6 kB) - added by ryan@acceleration.net on 08/12/08 16:47:20.
coderanger's fix as a diff against the trunk r4132

Change History

06/24/08 02:00:14 changed by anonymous

  • cc set to pioto@pioto.org.

06/24/08 22:15:18 changed by l-th@pgl22.co.uk

  • cc changed from pioto@pioto.org to pioto@pioto.org, l-th@pgl22.co.uk.

I've seen this too.

I'm using Trac with FastCGI, and TRAC_ENV_PARENT_DIR (so that accessing http://trac.mysite.com produces a list of environments)

It is to do with #1427, I've tracked it down to web_ui.py line 188 (correct in r3832) which currently reads

if req.path_info != redirect_url:

In my case, req.path_info is being set to "/prefs/account" and redirect_url is being set to "/myprojectname/prefs/account". Hence they're different, and the redirect occurs again.

A quick fix to stop the redirect is to change that line to read

if not redirect_url.endswith(req.path_info):

Howevever, making it correctly incorporate (or strip) the project name would be better!

(follow-up: ↓ 32 ) 07/09/08 15:57:02 changed by hoffmanc

I'm also seeing this, and hastily logged #3354, which I suppose someone can resolve as a duplicate now.

I fixed the problem by turning off force_change_passwd, like so

[account-manager] force_change_passwd = false

07/09/08 15:57:50 changed by hoffmanc

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com.

07/10/08 20:22:36 changed by tjones

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com.

07/17/08 04:56:22 changed by anonymous

I think line 188 in web_ui.py should actually look like this:

if req.base_path + req.path_info != redirect_url:

07/17/08 08:36:17 changed by coderanger

Or more correctly:

if req.href(req.path_info) != redirect_url:

07/24/08 03:30:08 changed by anonymous

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com.

08/07/08 21:39:13 changed by cschnu

I encountered this as well, will this fix be in the next build of this plugin?

08/07/08 21:41:42 changed by cschnu

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com.

08/12/08 16:45:44 changed by ryan@acceleration.net

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net.

I also encounter this error, coderanger's change worked for me.

08/12/08 16:47:20 changed by ryan@acceleration.net

  • attachment redirect-fix.patch added.

coderanger's fix as a diff against the trunk r4132

09/18/08 22:09:07 changed by anonymous

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org.

09/30/08 13:11:20 changed by anonymous

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org.

(follow-up: ↓ 15 ) 10/01/08 19:04:42 changed by vpolite@socialnetconnect.com

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com.

Hey Ryan, I made an attempt at implementing coderanger's patch on my instance of Trac. I still get the redirect when I attempt to login after changing my password.

I updated the source code and did an easy_install against my new information. I verified the change by unzipping the resultant .egg file and noted the change was there. I removed session_attribute information and even played with toggling the force_password = false flag (which works, but you also have to remove the session_attribute associated with your account --- if it was set to force_password = true and isn't removed, then you get the redirect blues all over again)

What information can I provide that might assist in troubleshooting? Also, my python is not good, but shouldn't the conditional in the patch refer to when the ForceAccount? flag is set to True, not False?

i.e.

186	186	            if req.session.get('force_change_passwd', False):

should be

186	186	            if req.session.get('force_change_passwd', True): 

Adding myself to the cc: list. Thanks!

(in reply to: ↑ 14 ) 10/02/08 20:06:38 changed by anonymous

Replying to vpolite@socialnetconnect.com:

What information can I provide that might assist in troubleshooting?

I am pretty unfamiliar with trac plugin development, and ended up getting help to install my patched version, and I now forget what I did to get the patch installed. I do recall having to restart apache. I'm afraid I'm not going to be much help in troubleshooting.

Also, my python is not good, but shouldn't the conditional in the patch refer to when the ForceAccount? flag is set to True, not False?

I think the second parameter there is what to use as a default value in case 'force_change_passwd' is not found in req.session. If there's nothing specified, we assume we don't need to force the password change.

10/11/08 02:25:58 changed by drees

  • owner changed from mgood to drees.
  • status changed from new to assigned.
  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com.

The patch seems to fix the issue for me using Trac 0.11.1. Any chance to see the fix committed?

10/11/08 03:01:08 changed by drees

  • status changed from assigned to new.
  • owner changed from drees to mgood.

10/19/08 04:50:03 changed by sh@jnamic.com

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com.

I deeply hope that the patch (or any solution at all) finds the way in the distribution.

I am adding myself to the cc to be informed when something happens here.

PS: I am too dump to create an egg-file including the patch. So I guess I'll have to wait.

10/24/08 17:35:12 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com.

11/11/08 19:07:38 changed by anonymous

Can anybody provide a workaround for this problem?

11/11/08 19:08:27 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com.

11/22/08 05:04:26 changed by blyth@hep1.phys.ntu.edu.tw

I closed #4140 as it duplicates this

12/26/08 11:03:45 changed by anonymous

I still encountered this , using tracaccountmanager-0.2.1dev_r4679-py2.5.egg

why not solve it ?

01/09/09 15:59:38 changed by brendan@kublai.com

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com.

My users get into this state occasionally. It seems to correspond to this kind of entry in trac.log:

2009-01-09 06:52:39,043 Trac[session] WARNING: Session xxx already exists: database is locked

I suspect something is going wrong here, in web_ui.py:

                if force_change_password:
                    del(req.session['force_change_passwd'])
                    req.session.save()

Just guessing, but I wonder what happens if req.session.save() fails (in my case because the sqlite db is temporarily locked)?

01/15/09 12:35:24 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com.

02/03/09 10:35:30 changed by anonymous

  • priority changed from normal to highest.

Hey all,

I am using Trac 0.11.2.1, I can't find the "acct_mgr/web_ui.py" to modify, e.g.

locate acct_mgr
>> nothing found

Damn it...I am locked at this stage for 2 days...

02/11/09 14:55:51 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk.

02/19/09 01:21:59 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov.

02/28/09 00:32:15 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com.

03/16/09 16:28:20 changed by anonymous

The patch worked for me with the following steps

# Modify the source 
http://trac-hacks.org/attachment/ticket/3233/redirect-fix.patch
cd .../trac_accountmanagerplugin_0_11/
emacs acct_mgr/web_ui.py

# Build and reinstall
python setup.py install

# Restart web server (forgot this)
service httpd restart

/Lars

03/24/09 08:57:25 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com.

(in reply to: ↑ 3 ; follow-ups: ↓ 35 ↓ 38 ) 04/04/09 20:13:16 changed by anonymous

Replying to hoffmanc:

I fixed the problem by turning off force_change_passwd, like so [account-manager] force_change_passwd = false

If you do this, you may still be stuck with the force_change_passwd set for some users in the trac.db. This flag can be cleared with:

sqlite3 yourtrac/db/trac.db \ 'DELETE FROM "session_attribute" WHERE "name" = "force_change_passwd";'

then you are only left with a 'already logged in warning' and after that everything is fine again...

04/08/09 17:20:00 changed by landolt@royalsys.com

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com.
  • keywords set to redirect.

I am having similar problems with Trac v0.11.4, Apache2 (mod_python), Postgres 8.X

I can see some of the pages, but I get into a Redirect Loop for the following pages: Wiki, Timeline, Search, Admin

Strangely enough, I can edit Wiki pages without any problems.

I have gone through the patch information above. There is no longer any code references to 'force_change_passwd' that I can see, or any file 'acct_mgr/web_ui.py'

04/08/09 21:11:23 changed by landolt@royalsys.com

Forgot to mention that all of the page links work without incident under tracd. And I recently installed the AccountManager plugin, but 'Admin' still has the Redirect Loop

(in reply to: ↑ 32 ) 06/05/09 15:52:22 changed by anonymous

Replying to anonymous:

Replying to hoffmanc:

I fixed the problem by turning off force_change_passwd, like so [account-manager] force_change_passwd = false

If you do this, you may still be stuck with the force_change_passwd set for some users in the trac.db. This flag can be cleared with: sqlite3 yourtrac/db/trac.db \ 'DELETE FROM "session_attribute" WHERE "name" = "force_change_passwd";' then you are only left with a 'already logged in warning' and after that everything is fine again...

You are the man!

06/28/09 06:46:07 changed by anonymous

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

06/28/09 07:58:38 changed by chutz

  • status changed from closed to reopened.
  • resolution deleted.

WTF? anonymous closing tickets!?

http://trac.pioto.org/paludis/ which is where I originally reported this problem against is now "Powered by Trac 0.11.5stable-r8061" and still has this problem.

(in reply to: ↑ 32 ) 07/06/09 19:52:46 changed by anonymous

I can confirm the bug. Thanks to the sqlite3 command it again is working.

Replying to anonymous:

Replying to hoffmanc:

I fixed the problem by turning off force_change_passwd, like so [account-manager] force_change_passwd = false

If you do this, you may still be stuck with the force_change_passwd set for some users in the trac.db. This flag can be cleared with: sqlite3 yourtrac/db/trac.db \ 'DELETE FROM "session_attribute" WHERE "name" = "force_change_passwd";' then you are only left with a 'already logged in warning' and after that everything is fine again...

08/31/09 04:59:26 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com.

09/16/09 10:24:55 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com.

09/28/09 15:33:29 changed by anonymous

  • severity changed from normal to major.

Guys, please get this fixed.

coderanger posted a (possible) fix for this on 07/17/08 already and this is a real bugger (and easy to fix).

I've been running into this for the second time now, and it basically makes the corresponding trac instance unusable for you!

10/14/09 20:07:25 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca.

10/15/09 09:38:09 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de.

10/15/09 09:56:23 changed by anonymous

Thank you, setting [account-manager] force_change_passwd = false and deleting entries from the MySQL-Db ( DELETE FROM "session_attribute" WHERE name = 'force_change_passwd';) did the trick for me using Trac 0.11.5 and TracAccountManager? 0.2.1dev-r5836.

10/23/09 20:59:46 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at.

I am also affected by this issue.

10/28/09 00:25:53 changed by Dawid@mentax.pl

The problem generate file:

TracActountManager?/acct_mgr/web_ui.py in line ~200 - r5837 - trunk

                if req.path_info != redirect_url:
                    req.redirect(redirect_url)

After comment this 2 line problem gone.

11/09/09 10:30:37 changed by anonymous

another affected user. please fix this.

11/09/09 19:46:56 changed by k0s

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, k0s.

can we fix this before the CC list gets longer?

11/09/09 19:58:11 changed by k0s

(In [7114]) disable force_passwd_change, see #3233

12/13/09 18:45:00 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, k0s to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s.

12/28/09 23:35:48 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com.

Same problem here.

(follow-up: ↓ 53 ) 01/07/10 00:48:47 changed by oneill+trac@energyhub.net

Confirm this is still in issue in most Trac v0.11.4, account manager from 0.11 branch svn.

Confirm that the patch 'redirect-fix' posted above works. This is not a force_passwd_change configuration issue

(in reply to: ↑ 52 ; follow-up: ↓ 55 ) 01/08/10 19:54:12 changed by anonymous

Still in version installed for Trac 0.11.6 .

01/25/10 23:12:04 changed by sahendrickson

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson.

(in reply to: ↑ 53 ; follow-up: ↓ 56 ) 02/22/10 16:59:51 changed by rachelle@zealousconsulting.com

Replying to anonymous:

Still in version installed for Trac 0.11.6 .

Ran into this same issue over the weekend. (0.11.6)

(in reply to: ↑ 55 ) 02/22/10 22:02:32 changed by cbidwell@usgs.gov

Replying to rachelle@zealousconsulting.com:

Replying to anonymous:

Still in version installed for Trac 0.11.6 .

Ran into this same issue over the weekend. (0.11.6)

Anyone have a permanent fix for this problem? This seems to be the most recurring issue that I have with trac and my users.

02/25/10 18:51:16 changed by pacopablo

(In [7721]) Applied patch to avoid infinite redirect when using forced password changes. References #3233

02/25/10 18:54:11 changed by pacopablo

  • owner changed from mgood to pacopablo.
  • status changed from reopened to new.

I applied the patch. It works for my limited testing. Please upgrade to the latest trunk and test. I will close this ticket next week if there are no more complaints of this occurring.

02/25/10 18:54:36 changed by pacopablo

  • status changed from new to assigned.

03/03/10 15:16:57 changed by AdrianFritz

  • summary changed from Infinite redirect loop after resetting the password to [Patch] Infinite redirect loop after resetting the password.

03/03/10 15:19:11 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, sh@jnamic.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson.

(follow-up: ↓ 63 ) 03/04/10 16:12:14 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com.

(in reply to: ↑ 62 ; follow-up: ↓ 66 ) 05/17/10 15:45:50 changed by henry@bostontechnologies.com

  • severity changed from major to critical.

Replying to anonymous:

Got the same problem now... after password change, loops at

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

chrome reports the same.

cookies are enabled.

This makes trac unusable for me or any user it happens to.

05/19/10 16:36:59 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com to mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com.

05/19/10 22:19:21 changed by drees

Updated to the latest on the 0.11 branch - works for me, thanks!

(in reply to: ↑ 63 ) 05/20/10 04:38:24 changed by pacopablo

  • status changed from assigned to closed.
  • resolution set to fixed.

Replying to henry@bostontechnologies.com:

Replying to anonymous: Got the same problem now... after password change, loops at Firefox has detected that the server is redirecting the request for this address in a way that will never complete. chrome reports the same. cookies are enabled. This makes trac unusable for me or any user it happens to.

So, if you update to the latest 0.11 or even trunk, does this still happen? Your subversion revision should be at least [7721]

I am closing this ticket as it looks like the fix worked for others. If you update and it still doesn't work, please re-open the ticket.

(follow-up: ↓ 74 ) 05/20/10 23:00:32 changed by cbidwell@usgs.gov

  • status changed from closed to reopened.
  • resolution deleted.
  • severity changed from critical to blocker.

Just updated to latest SVN build Trac==0.11.7.1dev-r9726 and still get "The page isn't redirecting properly" on Firefox.

06/15/10 14:30:03 changed by anonymous

  • cc changed from mike.mclean@pobox.com, pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com.

06/18/10 08:55:34 changed by anonymous

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com.

07/21/10 18:33:34 changed by anonymous

  • release changed from 0.11 to 0.12.

07/21/10 18:34:17 changed by anonymous

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com, robison.sousa@agu.gov.br.

07/21/10 18:34:49 changed by anonymous

  • release changed from 0.12 to 0.11.

(in reply to: ↑ 67 ) 09/26/10 14:55:17 changed by hasienda

  • summary changed from [Patch] Infinite redirect loop after resetting the password to Infinite redirect loop after resetting the password.

Replying to cbidwell@usgs.gov:

Just updated to latest SVN build Trac==0.11.7.1dev-r9726 and still get "The page isn't redirecting properly" on Firefox.

Wow, never seen such a long Cc-list before.

Anyway, while testing I've trigger an unbreakable loop myself now with current trunk version and Trac 0.12. So we need more ideas, right?

(follow-up: ↓ 78 ) 10/07/10 22:11:03 changed by hasienda

  • owner changed from pacopablo to hasienda.
  • status changed from reopened to new.

After [9263] I can't reproduce the infinite loop anymore, but in the first test a new user was redirected to nowhere the first time he/she entered Trac. Anyway two more tests went through without any problem. Slight progress? Finally the fix? Think so. More testers? Comments?

10/07/10 23:05:51 changed by anonymous

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, kameron.larsen@jpl.nasa.gov, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com, robison.sousa@agu.gov.br to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com, robison.sousa@agu.gov.br.

10/07/10 23:46:49 changed by landoltjp

  • cc changed from pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, foo.lim@carbonflow.com, ferringb@gmail.com, plandolt@royalsys.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com, robison.sousa@agu.gov.br to pioto@pioto.org, l-th@pgl22.co.uk, hoffmanc, chris.c.hoffman@gmail.com, timothy.jones@hp.com, seva_fwd@yahoo.com, csch_nu@hotmail.com, ryan@acceleration.net, roh@openmoko.org, vpolite@socialnetconnect.com, drees@greenhydrant.com, bgladwell@goantiques.com, cvhinten@gmail.com, brendan@kublai.com, billzingler@gmail.com, r.s.hatcher@reading.ac.uk, foo.lim@carbonflow.com, ferringb@gmail.com, brad-trachacks@fritzfam.com, snoopotic@gmail.com, joshua@sixthgear.ca, wenzel@informatik.uni-augsburg.de, miguel@almeida.at, menderico@gmail.com, k0s, naktinis@gmail.com, sahendrickson, exarkun@twistedmatrix.com, henry@bostontechnologies.com, haterw@gmail.com, robison.sousa@agu.gov.br.

(in reply to: ↑ 75 ) 10/11/10 01:31:02 changed by hasienda

  • keywords changed from redirect to needinfo redirect.
  • priority changed from highest to high.
  • severity changed from blocker to major.
  • summary changed from Infinite redirect loop after resetting the password to [patch] Infinite redirect loop after resetting the password.

Replying to hasienda:

After [9263] I can't reproduce the infinite loop anymore, but in the first test a new user was redirected to nowhere the first time he/she entered Trac. Anyway two more tests went through without any problem. Slight progress? Finally the fix? Think so. More testers? Comments?

My suggestion is supported by #1382. The patch attached there contains identical code to what has already been added with changeset [7721].

Therefore I lower priority right now. If there are no more complaints raised here, I'll even be reluctant to keep this ticket open for a much longer time.

(follow-ups: ↓ 81 ↓ 84 ) 10/14/10 02:31:29 changed by anonymous

I get this with the current stable install on ubuntu Lucid following the directions here: http://192.168.0.116/trac/wiki/TracCgi

Version: Welcome to trac-admin 0.11.7

Per Firefox: The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

  • This problem can sometimes be caused by disabling or refusing to accept

cookies.

10/14/10 02:36:39 changed by anonymous

PS: After I logged in (using Konqueror) for the first time I could no longer reproduce on Firefox. FF version = 3.5.10

(in reply to: ↑ 79 ) 10/14/10 22:27:31 changed by hasienda

Replying to anonymous:

I get this with the current stable install on ubuntu Lucid following the directions here: http://192.168.0.116/trac/wiki/TracCgi

You don't expect us to follow the link, do you? This is a private address, accessible only from with (your) LAN.

Version: Welcome to trac-admin 0.11.7 Per Firefox: The page isn't redirecting properly

Well, please have a look at #3783 as well, as that might be related.

(follow-up: ↓ 83 ) 10/15/10 13:32:04 changed by robisoncleyton

I'm sorry, but I write english not very well.

The infinite redirect loop happens because force_passwd_change option is cleared.

So, check the option false in menu Account Manager or change the trac.ini file .

I hope that helps.

(in reply to: ↑ 82 ) 10/16/10 02:41:20 changed by hasienda

Replying to robisoncleyton:

I'm sorry, but I write english not very well. The infinite redirect loop happens because force_passwd_change option is cleared. So, check the option false in menu Account Manager or change the trac.ini file . I hope that helps.

No, sorry. I've done a quick test unchecking the option, but this does no harm. But maybe I've just misunderstood. Would you please explain in more details, how to reproduce (provided you're able to test recent trunk code). I'm very interested in fixing any bad behavior, if still existent.

(in reply to: ↑ 79 ) 10/19/10 23:02:03 changed by anonymous

Replying to anonymous:

* This problem can sometimes be caused by disabling or refusing to accept cookies.

If this is unrelated, please overlook my post ;). However, I ran into problems with logging in when using Internet Explorer 6. After (correctly) authenticating, I would be redirected back to the login page, as if I had not authenticated at all.

It turned out that (in my case) IE was rejecting the trac session cookies because the Apache server was not publishing an appropriate P3P policy. Once I added an appropriate policy to my Apache configuration it worked.

I don't have access to the server now, but I think I added something like:

Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"NOI DSP COR NID CUR ADM DEV OUR BUS\""

from here (You can interpret the codes using this page, for example)

Perhaps this is something else to try for those that are still having issues?

10/20/10 21:21:06 changed by hasienda

  • priority changed from high to normal.

I'll keep this ticket open for a while, but lower priority, at least as long as I can't see certain demand for action.

11/07/10 02:36:33 changed by hasienda

(In [9404]) AccountManagerPlugin: Provide fallback for undefined HTTP referer after successful login attempt, closes #3783, refs #3233 and #7687.

Redirect to corresponding Trac project's base URL, if referrer is undefined. We prefer req.abs_href() over req.base_url, as a req object is available and should always contain the needed information even with option base_url unset in trac.ini . See T#5064 for even more details.

11/09/10 01:53:22 changed by hasienda

Related T#9757 has been resolved.

11/24/10 22:12:31 changed by hasienda

  • status changed from new to closed.
  • resolution set to fixed.

(In [9515]) AccountManagerPlugin: Break redirect loop in LoginModule?, closes #3233.

Found by investigating interaction between LoginModule? and auth.LoginModule? from Trac, confirmed loop condition, and this is the simple but certainly non-trivial fix. Enjoy.

11/24/10 22:23:44 changed by hasienda

  • keywords changed from needinfo redirect to redirect.

How to test/reproduce:

  1. navigate to your Trac instance
  2. call AccountManagerPlugin's own login page via 'login' link in metanav
  3. fill in a user but no/invalid password
  4. submit login form (-> authentication failed, redirects back to login page)
  5. call AccountManagerPlugin's own login page via 'login' link in metanav again (now we have /login set as the HTTP referrer)
  6. fill in valid user and password
  7. watch endless loop back to login right after submitting login form

With the patch applied in changeset [9515] this gets cleared and previous fixes for other loop/invalid referrer issue remains functional. I'm not aware of any remaining similar occurrence of invalid redirects. Please test yourself.

07/10/11 23:42:56 changed by hasienda

(In [10421]) AccountManagerPlugin: Second: Improve redirect loop protection - again, refs #3233 and #8963.

We already knew a lot about infinite loops starting from '/login' (see #3233), but for Trac 0.11 obviously this has been not enough. Still I wonder, why no one complained about it recently.

Hint: Trac 0.11 doesn't preserve the referer very well, but I'm reluctant to fix this in AccountManager. Better use a current Trac, if you dislike it.


Add/Change #3233 ([patch] Infinite redirect loop after resetting the password)




Change Properties
Action