6.0.0-beta1
7/6/25

[#3298] Wrong backend loaded after selection on login.php
Summary Wrong backend loaded after selection on login.php
Queue Gollem
Queue Version 1.0.1
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester jpolansky (at) lsit (dot) ucsb (dot) edu
Created 01/18/2006 (7109 days ago)
Due
Updated 01/19/2006 (7108 days ago)
Assigned 01/18/2006 (7109 days ago)
Resolved 01/19/2006 (7108 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/19/2006 02:31:55 AM Michael Slusarz Summary ⇒ Wrong backend loaded after selection on login.php
 
01/19/2006 02:26:24 AM Michael Slusarz Comment #2
Summary ⇒ Wrong backend loaded after selection on login.phpF
State ⇒ Resolved
Reply to this comment
Fixed in HEAD and 1.0.2.
01/18/2006 10:44:12 PM Chuck Hagenbuch Assigned to Michael Slusarz
State ⇒ Assigned
 
01/18/2006 10:04:32 PM jpolansky (at) lsit (dot) ucsb (dot) edu Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Wrong backend loaded after selection on login.php
Queue ⇒ Gollem
New Attachment: gollem-h3-1.0.1-change_backend_fix.patch Download
Reply to this comment
We are having problems with gollem displaying/loading the wrong 
backend when changing backends via the dropdown on login.php.  Our 
environment consists of 3 hordeauthed/autologin backends all using FTP.



The problem seems to be that when a previously logged into backend is 
selected from the login screen dropdown(calling the gollem_reload js 
function) the variable "change_backend" is not defined.  This causes 
the backend to not be switched, even though 
$_SESSION['gollem']['backends'][$backend_key] exists (because the 
backend was previously logged into).  We have handled this by removing 
the conditional check for "change_backend" in login.php:68.  From what 
we can tell, you always want to change the backend at this point in 
the code, as otherwise the user is returned to the file manager with 
the backend they were last using.



The patch I have attached removes the conditional check on 
"change_backend" in login.php.  This seems to resolve our issue.



I'd appreciate any comments about how to better deal with this issue 
or if others have experienced it as well.



--Jonathan

Saved Queries