6.0.0-beta1
7/19/25

[#11273] Fails to load Kolab XML data from IMAP
Summary Fails to load Kolab XML data from IMAP
Queue Mnemo
Queue Version Git develop
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 07/14/2012 (4753 days ago)
Due
Updated 08/29/2012 (4707 days ago)
Assigned 07/17/2012 (4750 days ago)
Resolved 07/17/2012 (4750 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/29/2012 12:42:46 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit d7dcdcdb3e653eade5e2916d479de90fe16d27bd
Author: Jan Schneider <jan@horde.org>
Date:   Tue Jul 17 13:11:09 2012 +0200

     Use changed iterator from Imap_Client (Bug #11273, Bug #11274).

  .../lib/Horde/Kolab/Storage/Driver/Imap.php        |    4 ++--
  framework/Kolab_Storage/package.xml                |    4 ++--
  2 files changed, 4 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/d7dcdcdb3e653eade5e2916d479de90fe16d27bd
07/17/2012 11:17:39 AM Jan Schneider State ⇒ Resolved
 
07/17/2012 11:15:08 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (develop):

commit d7dcdcdb3e653eade5e2916d479de90fe16d27bd
Author: Jan Schneider <jan@horde.org>
Date:   Tue Jul 17 13:11:09 2012 +0200

     Use changed iterator from Imap_Client (Bug #11273, Bug #11274).

  .../lib/Horde/Kolab/Storage/Driver/Imap.php        |    4 ++--
  framework/Kolab_Storage/package.xml                |    4 ++--
  2 files changed, 4 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/d7dcdcdb3e653eade5e2916d479de90fe16d27bd
07/17/2012 10:59:07 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Assigned
 
07/14/2012 05:11:12 PM Thomas Jarosch Comment #2 Reply to this comment
This evil hack allows me to load the data finally:

diff --git 
a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Factory.php 
b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Factory.php
index 001271b..9ec5723 100644
--- a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Factory.php
+++ b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Factory.php
@@ -155,6 +155,11 @@ class Horde_Kolab_Storage_Factory
              $timer = new Horde_Support_Timer();
              $timer->push();
          }
+
+        // Horde::logMessage("TOMJ: Dumping kolab driver params: 
".print_r($params,true));
+        $params['driver'] = 'pear';


Question: Is the IMAP driver used for the Kolab backend configurable 
somewhere?

07/14/2012 04:08:20 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Fails to load Kolab XML data from IMAP
Queue ⇒ Mnemo
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

mnemo currently fails to load Kolab XML data stored in an IMAP server.

This is the error message in the log:

2012-07-14T17:48:29+02:00 WARN: HORDE [mnemo] PHP ERROR: array_keys() 
expects parameter 1 to be array, object given [pid 17825 on line 425 
of 
"/datastore/DEVEL/horde/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Imap.php"]

2012-07-14T17:48:29+02:00 WARN: HORDE [mnemo] PHP ERROR: Invalid 
argument supplied for foreach() [pid 17825 on line 425 of 
"/datastore/DEVEL/horde/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Imap.php"]


I've added a print_r() and log call to the $ret variable in question, 
the result is a "DumpHorde_Imap_Client_Fetch_Results" object instead 
of an array.

2012-07-14T17:55:12+02:00 INFO: HORDE [mnemo] TOMJ: 
DumpHorde_Imap_Client_Fetch_Results Object
(
     [_data:protected] => Array
         (
             [1] => Horde_Imap_Client_Data_Fetch Object
                 (
                     [_data:protected] => Array
                         (
                             [14] => 1
                             [13] => 1
                             [1] => Horde_Mime_Part Object
                                 (
                                     [_type:protected] => multipart
                                     [_subtype:protected] => mixed
                                     [_contents:protected] =>
                                     [_transferEncoding:protected] => binary
                                     [_language:protected] => Array
                                         (
                                             [0] => NIL
                                         )

                                     [_description:protected] =>
                                     [_disposition:protected] => attachment
                                     [_dispParams:protected] => Array
                                         (
                                             [filename] => Kolab Groupware Data
                                         )

                                     [_contentTypeParams:protected] => Array
                                         (
                                             [boundary] => 
=_0bgbYAhKP71P7zvJUQdHW7A
                                             [name] => Kolab Groupware Data
                                         )


Is this due to an incomplete refactoring or a different issue?

Cheers,
Thomas

Saved Queries