Bug 232987

Summary: horde 3.1.4-1.fc6 creates infinite redirect loop on login
Product: [Fedora] Fedora Reporter: Håvard Wigtil <havardw>
Component: hordeAssignee: Brandon Holbrook <fedora>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-21 02:36:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Håvard Wigtil 2007-03-19 19:26:17 UTC
Description of problem:
After upgrading to horde 3.1.4-1.fc6, I get a redirect loop on login.
Firefox comes up with this message after a little while:
---------------------------------------------------------------------
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.
---------------------------------------------------------------------

And in my logs I get this:
84.48.62.251 - - [19/Mar/2007:20:12:10 +0100] "GET /horde/ HTTP/1.1" 302 26
84.48.62.251 - - [19/Mar/2007:20:12:10 +0100] "GET /horde/index.php/login.php
HTTP/1.1" 302 26
84.48.62.251 - - [19/Mar/2007:20:12:10 +0100] "GET /horde/index.php/login.php
HTTP/1.1" 302 26
(the last line repeated 18 times)

Downgrading to 3.1.3-11 fixes the problem for me.

Version-Release number of selected component (if applicable):
horde 3.1.4-1.fc6

How reproducible:
Always

Comment 1 Brandon Holbrook 2007-03-20 05:59:22 UTC
It seems that horde introduced some new webroot-detection mechanisms to 'more
intelligently' generate URLs back to itself.  This autodetection is bombing on
our file structure (config files in /etc instead of under /usr/share/horde).  I
have just recently found a few other issues I believe to be caused by this
autodetection, and I believe your problem falls under this category too.

In /etc/horde/registry.php in the 'horde' section, try changing the 'webroot'
setting to '/horde' instead of _detect_webroot().  I have already included this
fix in rawhide, but if this change resolves your issues too, I will push an
update for FC6 as well.

Comment 2 Håvard Wigtil 2007-03-20 21:04:49 UTC
Changing webroot to '/horde' fixes this problem for me, thanks!

Comment 3 Brandon Holbrook 2007-03-21 02:36:36 UTC
webroot is now hard-coded to '/horde' in horde-3.1.4-2.fc[567]