6.0.0-beta1
8/10/25

[#6042] php error on login page and a load delay because of an unauthenticated IMAP-access
Summary php error on login page and a load delay because of an unauthenticated IMAP-access
Queue Kolab
Type Bug
State Resolved
Priority 3. High
Owners wrobel (at) horde (dot) org
Requester m.gabriel (at) das-netzwerkteam (dot) de
Created 12/25/2007 (6438 days ago)
Due
Updated 02/29/2008 (6372 days ago)
Assigned 12/25/2007 (6438 days ago)
Resolved 02/29/2008 (6372 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/29/2008 10:21:58 AM Gunnar Wrobel Comment #2
State ⇒ Resolved
Reply to this comment
Thanks! In cvs.
12/25/2007 03:28:08 AM Chuck Hagenbuch Assigned to Gunnar Wrobel
State ⇒ Assigned
 
12/25/2007 12:01:04 AM m (dot) gabriel (at) das-netzwerkteam (dot) de Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ php error on login page and a load delay because of an unauthenticated IMAP-access
Queue ⇒ Kolab
State ⇒ Unconfirmed
Reply to this comment
i am using kolab-2.1 (debian unstable) and horde-webmail-1.1rc1



with the patch below an error on the login.php page vanishes (when 
using IMAP auth with kolab). the error was called, if all IMAP folders 
of the kolab-cyrus server are accessible only for authenticated IMAP 
users.



Warning: Invalid argument supplied for foreach() in 
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Kolab/IMAP.php on line 
357



there is still a delay in loading the login.php page, though, as nag 
tries to access some IMAP-folders prior to authentication:



Dec 24 23:58:42 grimnir cyrus/imap[5860]: badlogin: localhost 
[127.0.0.1] plaintext  SASL(-1): generic failure: All-whitespace 
username.

Dec 24 23:58:45 grimnir HORDE[15339]: [nag] Unable to authenticate 
with the Kolab IMAP server [on line 1689 of 
"/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Kolab/IMAP.php"]



here comes the patch...



diff -r horde-webmail-1.1-rc1/lib/Horde/Kolab/IMAP.php 
horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Kolab/IMAP.php

356,360c356,362

<             foreach ($folders as $folder) {

<                 if ($folder[1] == $this->_object_type && $folder[2] == 1) {

<                     return $folder[0];

<                 }

<             }

---
           if ($folders) {
                 foreach ($folders as $folder) {
                           if ($folder[1] == $this->_object_type && 
$folder[2] == 1) {
                       return $folder[0];
                     }
               }
           }
mike

Saved Queries