Modify

Opened 9 years ago

Closed 8 years ago

#3396 closed defect (fixed)

AccountModule breaks trac

Reported by: ben Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

When I try to enable the AccountModule component either through the admin page or directly in the ini it causes the system to then prevent me from logging in.

In Firefox I get the follwong error:

Redirect Loop Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked.

After I delete all mof my cookies I get the following message:

Error: Not Found Unknown preference panel

In IE 7 the login attempt just times out.

If I then remove the AccountModule component from the ini file then the system returns to a normal working state.

Here are the system details: Trac: 0.11rc2 Python: 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c7 SQLite: 3.4.0 pysqlite: 2.3.3 Genshi: 0.5 jQuery: 1.2.3

I am trying to use tracaccountmanager 0.2.1dev-r3857

I am running Tracd on the company server.

I have attached my ini files and the debug log.

Attachments (2)

trac.ini (1.0 KB) - added by ben 9 years ago.
ini file
trac.log (522 bytes) - added by ben 9 years ago.
Debug log

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by ben

Attachment: trac.ini added

ini file

Changed 9 years ago by ben

Attachment: trac.log added

Debug log

comment:1 Changed 8 years ago by roh

had a similar problem when updating from post-0.10/pre-0.11svn to 0.11 stable. the pw-change enforcement was enabled by default after updating accountmanagerplugin. the following clicktrail sent accounts into a redirect loop.

quick debugging in irc led to this workaround:

--- acct_mgr/web_ui.py	(revision 3950)
+++ acct_mgr/web_ui.py	(working copy)
@@ -186,7 +186,7 @@
             if req.session.get('force_change_passwd', False):
                 redirect_url = req.href.prefs('account')
                 if req.path_info != redirect_url:
-                    req.redirect(redirect_url)
+                    pass
         return (template, data, content_type)
 
     # INavigationContributor methods

comment:2 Changed 8 years ago by ben

Resolution: fixed
Status: newclosed

That did it.

Thanks for your help.

Modify Ticket

Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.