6.0.0-alpha14
7/2/25

[#13384] Error searching all imp folders
Summary Error searching all imp folders
Queue IMP
Queue Version 6.2.0
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester andre.paiz (at) iqm (dot) unicamp (dot) br
Created 07/22/2014 (3998 days ago)
Due
Updated 07/23/2014 (3997 days ago)
Assigned
Resolved 07/23/2014 (3997 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/23/2014 09:18:05 PM Michael Slusarz Comment #5
Assigned to Michael Slusarz
State ⇒ Resolved
Milestone ⇒
Reply to this comment
IMP 6.2.1
07/23/2014 09:17:17 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit fb87d9d3d66a310520c30a25c4c895d62ad953c2
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Jul 23 15:12:52 2014 -0600

     [mms] Fix advanced search in all mailboxes if virtual folders or 
remote accounts exist (Bug #13384).

     Conflicts:
             imp/docs/CHANGES
             imp/package.xml

  imp/docs/CHANGES         |    2 ++
  imp/lib/Search/Query.php |    5 ++++-
  imp/package.xml          |    1 +
  3 files changed, 7 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/fb87d9d3d66a310520c30a25c4c895d62ad953c2
07/23/2014 09:14:04 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 386bc9d02146cf3313d2215d5cfa88957adf04c9
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Jul 23 15:12:52 2014 -0600

     [mms] Fix advanced search in all mailboxes if virtual folders or 
remote accounts exist (Bug #13384).

  imp/docs/CHANGES         |    2 ++
  imp/lib/Search/Query.php |    5 ++++-
  imp/package.xml          |    2 ++
  3 files changed, 8 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/386bc9d02146cf3313d2215d5cfa88957adf04c9
07/23/2014 01:19:29 PM adorman (at) ironicdesign (dot) com Comment #2 Reply to this comment
I also tried a search across all folders (Imp 6.2/Horde 5.2/PHP 5.6 
RC2) and it failed.

The on screen error message was "IMP is marked as authenticated, but 
no credentials can be found in the session."

Based on that message I took a look at my session configs for horde 
and imp and the only config files that mention session have this:

horde/conf.php
-----------------
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['timeout'] = 0;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['max_time'] = 72000;
$conf['sessionhandler']['type'] = 'Builtin';
$conf['sessionhandler']['hashtable'] = true;

imp/prefs.php
----------------
// User's HTML signature - UI widget
$_prefs['signature_html_select'] = array(
     'type' => 'special',
     'handler' => 'IMP_Prefs_Special_HtmlSignature',
     'requires_nolock' => array('signature_html'),
     'suppress' => function() {
         return !$GLOBALS['session']->get('imp', 'rteavail');
     }
);

I switched the logging to DEBUG and retried the unsuccessful ALL 
folder search and got the output below.  Then I tried a successful 
single folder search and the debug log lines (also below) look the 
same...so I do not believe the log is going to be helpful in figuring 
this one out.

DEBUG log from Unsuccessful ALL folder search
===============================
2014-07-23T07:48:39.419294-05:00 yorick HORDE: Load config file 
(conf.php; app: horde) [pid 23947 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:48:39.447905-05:00 yorick HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 23947 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:48:39.466287-05:00 yorick HORDE: [imp] Load config file 
(hooks.php; app: imp) [pid 23947 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:48:39.471251-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::removeUser() should be compatible with 
Horde_Auth_Ldap::removeUser($userId, $dn = NULL) [pid 23947 on line 17 
of "/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:48:39.471352-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::updateUser() should be compatible with 
Horde_Auth_Ldap::updateUser($oldID, $newID, $credentials, $olddn = 
NULL, $newdn = NULL) [pid 23947 on line 17 of 
"/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:48:39.506041-05:00 yorick HORDE: [imp] Max memory usage: 
8650752 bytes [pid 23947 on line 618 of 
"/usr/share/php/Horde/Registry.php"]
2014-07-23T07:48:39.657098-05:00 yorick HORDE: Load config file 
(conf.php; app: horde) [pid 13497 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:48:39.686927-05:00 yorick HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 13497 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:48:39.705553-05:00 yorick HORDE: [imp] Load config file 
(hooks.php; app: imp) [pid 13497 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:48:39.710573-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::removeUser() should be compatible with 
Horde_Auth_Ldap::removeUser($userId, $dn = NULL) [pid 13497 on line 17 
of "/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:48:39.710672-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::updateUser() should be compatible with 
Horde_Auth_Ldap::updateUser($oldID, $newID, $credentials, $olddn = 
NULL, $newdn = NULL) [pid 13497 on line 17 of 
"/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:48:40.120466-05:00 yorick HORDE: [imp] SQL  (0.0039s)   
#012#011SELECT alarm_id, alarm_uid, alarm_start, alarm_end, 
alarm_methods,#012#011  alarm_params, alarm_title, alarm_text, 
alarm_snooze, alarm_internal#012#011  FROM horde_alarms WHERE 
alarm_dismissed = 0 AND ((alarm_snooze IS NULL#012#011  AND 
alarm_start <= '2014-07-23 12:48:40') OR alarm_snooze <=#012#011   
'2014-07-23 12:48:40') AND (alarm_end IS NULL OR alarm_end >=#012#011   
'2014-07-23 12:48:40') AND (alarm_uid IS NULL OR alarm_uid = '' 
OR#012#011  alarm_uid = 'andydorman@comehome.net') ORDER BY 
alarm_start, alarm_end [pid 13497 on line 208 of 
"/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"]
2014-07-23T07:48:40.121773-05:00 yorick HORDE: [imp] Max memory usage: 
13631488 bytes [pid 13497 on line 618 of 
"/usr/share/php/Horde/Registry.php"]

DEBUG log from successful single folder search
===============================
2014-07-23T07:53:34.685872-05:00 yorick HORDE: Load config file 
(conf.php; app: horde) [pid 13497 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:53:34.714295-05:00 yorick HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 13497 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:53:34.733271-05:00 yorick HORDE: [imp] Load config file 
(hooks.php; app: imp) [pid 13497 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:53:34.738439-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::removeUser() should be compatible with 
Horde_Auth_Ldap::removeUser($userId, $dn = NULL) [pid 13497 on line 17 
of "/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:53:34.738678-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::updateUser() should be compatible with 
Horde_Auth_Ldap::updateUser($oldID, $newID, $credentials, $olddn = 
NULL, $newdn = NULL) [pid 13497 on line 17 of 
"/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:53:34.772807-05:00 yorick HORDE: [imp] Max memory usage: 
8388608 bytes [pid 13497 on line 618 of 
"/usr/share/php/Horde/Registry.php"]
2014-07-23T07:53:34.939518-05:00 yorick HORDE: Load config file 
(conf.php; app: horde) [pid 23947 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:53:34.969168-05:00 yorick HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 23947 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:53:34.987770-05:00 yorick HORDE: [imp] Load config file 
(hooks.php; app: imp) [pid 23947 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
2014-07-23T07:53:34.992827-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::removeUser() should be compatible with 
Horde_Auth_Ldap::removeUser($userId, $dn = NULL) [pid 23947 on line 17 
of "/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:53:34.992927-05:00 yorick HORDE: PHP ERROR: Declaration 
of Horde_Core_Auth_Ldap::updateUser() should be compatible with 
Horde_Auth_Ldap::updateUser($oldID, $newID, $credentials, $olddn = 
NULL, $newdn = NULL) [pid 23947 on line 17 of 
"/usr/share/php/Horde/Core/Auth/Ldap.php"]
2014-07-23T07:53:35.308142-05:00 yorick HORDE: [imp] SQL  (0.0039s)   
#012#011SELECT alarm_id, alarm_uid, alarm_start, alarm_end, 
alarm_methods,#012#011  alarm_params, alarm_title, alarm_text, 
alarm_snooze, alarm_internal#012#011  FROM horde_alarms WHERE 
alarm_dismissed = 0 AND ((alarm_snooze IS NULL#012#011  AND 
alarm_start <= '2014-07-23 12:53:35') OR alarm_snooze <=#012#011   
'2014-07-23 12:53:35') AND (alarm_end IS NULL OR alarm_end >=#012#011   
'2014-07-23 12:53:35') AND (alarm_uid IS NULL OR alarm_uid = '' 
OR#012#011  alarm_uid = 'andydorman@comehome.net') ORDER BY 
alarm_start, alarm_end [pid 23947 on line 208 of 
"/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"]
2014-07-23T07:53:35.309773-05:00 yorick HORDE: [imp] Max memory usage: 
12582912 bytes [pid 23947 on line 618 of 
"/usr/share/php/Horde/Registry.php"]

07/22/2014 07:52:59 PM andre (dot) paiz (at) iqm (dot) unicamp (dot) br Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Error searching all imp folders
Due ⇒ 07/21/2014
Queue ⇒ IMP
Milestone ⇒ Horde 5.2 Imp 6.2.0
Patch ⇒ No
New Attachment: Error.png Download
State ⇒ Unconfirmed
Reply to this comment
Dear Horde Team,
After upgrading to version 5.2, users are experiencing problems 
performing searchs inside imp mailboxes.
The error in the log file displays the following:

WARN: HORDE [imp] [search] Could not open mailbox "impsearchvinbox". 
[pid 32115 on line 732 of "/var/www/html/horde/imp/lib/Imap.php"]

or

WARN: HORDE [imp] [search] Could not open mailbox "impsearch".

The error shows up on the screen when a ADVANCED search for ALL 
FOLDERS is performed. Single folder search is working fine. Debug 
shows nothing...

My CentOS server has the php-5.5.14-2.el6.remi.x86_64 package 
installed and this error started after 5.2 upgrade from 5.1.4.

I appreciate if you can help me.
Thanks

Saved Queries