[Tickets #6978] Redirection loop when using $conf[server][change_server]

bugs at horde.org bugs at horde.org
Thu Jun 26 08:36:27 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6978
------------------------------------------------------------------------------
  Ticket             | 6978
  Created By         | fredrik.poller at binero.se
  Summary            | Redirection loop when using
                     | $conf[server][change_server]
  Queue              | IMP
  Version            | 4.2
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


fredrik.poller at binero.se (2008-06-26 04:36) wrote:

IMP is getting stuck in a redirection loop when loading the login page  
when I use $conf[server][change_server]. Using  
$conf[server][server_list] = 'none' without setting  
$conf[server][change_server] works fine.

Apaches access log contains this:

217.78.41.153 - - [26/Jun/2008:09:18:57 +0200] "GET  
/imp/redirect.php?actionID=login&autologin=1&server_key=imap HTTP/1.1"  
302 38 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE;  
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
217.78.41.153 - - [26/Jun/2008:09:18:57 +0200] "GET  
/imp/redirect.php?actionID=login&autologin=1&server_key=imap HTTP/1.1"  
302 38 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE;  
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
... until browser decides we're stuck in a loop

Hordes log file doesn't tell me anything.

Here's Hordes config directives related to sessions, cookies and auth:  
(if more is needed, let me know)

$conf['use_ssl'] = 0;
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;  
$conf['session']['cache_limiter'] = 'nocache';  
$conf['session']['timeout'] = 0; $conf['cookie']['domain'] =  
'horde.binero.net'; $conf['cookie']['path'] = '/';  
$conf['auth']['admins'] = array('fredrik.poller at binero.se');
$conf['auth']['checkip'] = true;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['alternate_login'] = false;  
$conf['auth']['redirect_on_logout'] = false;  
$conf['auth']['params']['app'] = 'imp'; $conf['auth']['driver'] =  
'application';

Here's IMPs config directives:

$conf['server']['change_server'] = true;  
$conf['server']['change_port'] = false;  
$conf['server']['change_protocol'] = false;  
$conf['server']['change_smtphost'] = false;  
$conf['server']['change_smtpport'] = false;  
$conf['server']['server_list'] = 'none';  
$conf['server']['fixed_folders'] = array();  
$conf['server']['sort_limit'] = 0; $conf['server']['cache_folders'] =  
true; $conf['server']['token_lifetime'] = 1800;  
$conf['server']['cachejs'] = 'none'; $conf['server']['cachecss'] =  
'none';

Servers.php contains this:

$servers['binero'] = array(
     'name' => 'Binero',
     'server' => 'mail.binero.se',
     'hordeauth' => false,
     'protocol' => 'imap/notls',
     'port' => 143,
     'smtphost' => 'localhost',
     'smtpport' => 25,
     'realm' => '',
     'preferred' => '',
);

Versions I’m running:

FreeBSD 7.0
Horde 3.2.1
IMP H3 4.2
Apache 1.3.39
PHP 5.2.5





More information about the bugs mailing list