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 |
State ⇒ Resolved
State ⇒ Assigned
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
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];
< }
< }
---
foreach ($folders as $folder) {
if ($folder[1] == $this->_object_type &&
$folder[2] == 1) {
return $folder[0];
}
}
}