6.0.0-alpha10
5/14/25

[#14248] fail to create a preference storage
Summary fail to create a preference storage
Queue Ingo
Queue Version 3.2.8
Type Bug
State Assigned
Priority 1. Low
Owners Horde Developers (at) , mrubinsk (at) horde (dot) org
Requester sca (at) andreasschulze (dot) de
Created 02/10/2016 (3381 days ago)
Due
Updated 09/15/2016 (3163 days ago)
Assigned 02/15/2016 (3376 days ago)
Resolved
Milestone
Patch No

History
09/15/2016 06:12:56 PM Michael Rubinsky Comment #4 Reply to this comment
Pretty sure this is a stream filter related bug in PHP. The stream 
filter in Horde_Imap_Client_Data_Format_String::__construct() is 
eating the contents of the stream in certain cases. I've seen this 
happen mostly when opening a mailbox in the imap client - causing the 
mailbox name to be an empty string. Here is a trace showing the value 
of the string before adding to a temporary stream with the filter 
attached, and then showing an empty stream afterwards:
2016-09-15T16:37:33+00:00 DEBUG: Variable information:
string(17) "INBOX.Preferences"

Backtrace:
  1. Horde_Prefs->store()
  2. Horde_Prefs_Storage_KolabImap->store() /usr/share/php/Horde/Prefs.php:472
  3. Horde_Kolab_Storage_Data_Decorator_Log->modify() 
/usr/share/php/Horde/Prefs/Storage/KolabImap.php:143
  4. Horde_Kolab_Storage_Data_Base->modify() 
/usr/share/php/Horde/Kolab/Storage/Data/Decorator/Log.php:198
  5. Horde_Kolab_Storage_Object->save() 
/usr/share/php/Horde/Kolab/Storage/Data/Base.php:334
  6. Horde_Kolab_Storage_Driver_Decorator_Base->fetchComplete() 
/usr/share/php/Horde/Kolab/Storage/Object.php:418
  7. Horde_Kolab_Storage_Driver_Decorator_Base->fetchComplete() 
/usr/share/php/Horde/Kolab/Storage/Driver/Decorator/Base.php:419
  8. Horde_Kolab_Storage_Driver_Imap->fetchComplete() 
/usr/share/php/Horde/Kolab/Storage/Driver/Decorator/Base.php:419
  9. Horde_Imap_Client_Base->fetch() 
/usr/share/php/Horde/Kolab/Storage/Driver/Imap.php:495
10. Horde_Imap_Client_Base->_fetchWrapper() 
/usr/share/php/Horde/Imap/Client/Base.php:2475
11. Horde_Imap_Client_Base->openMailbox() 
/usr/share/php/Horde/Imap/Client/Base.php:2508
12. Horde_Imap_Client_Socket->_openMailbox() 
/usr/share/php/Horde/Imap/Client/Base.php:1045
13. Horde_Imap_Client_Socket->_getMboxFormatOb() 
/usr/share/php/Horde/Imap/Client/Socket.php:1166
14. Horde_Imap_Client_Data_Format_Mailbox->__construct() 
/usr/share/php/Horde/Imap/Client/Socket.php:4191
15. Horde_Imap_Client_Data_Format_String->__construct() 
/usr/share/php/Horde/Imap/Client/Data/Format/Mailbox.php:47
16. Horde::debug() /usr/share/php/Horde/Imap/Client/Data/Format/String.php:60

2016-09-15T16:37:33+00:00 DEBUG: Variable information:
resource(32) of type (stream)

Stream contents:

Backtrace:
  1. Horde_Prefs->store()
  2. Horde_Prefs_Storage_KolabImap->store() /usr/share/php/Horde/Prefs.php:472
  3. Horde_Kolab_Storage_Data_Decorator_Log->modify() 
/usr/share/php/Horde/Prefs/Storage/KolabImap.php:143
  4. Horde_Kolab_Storage_Data_Base->modify() 
/usr/share/php/Horde/Kolab/Storage/Data/Decorator/Log.php:198
  5. Horde_Kolab_Storage_Object->save() 
/usr/share/php/Horde/Kolab/Storage/Data/Base.php:334
  6. Horde_Kolab_Storage_Driver_Decorator_Base->fetchComplete() 
/usr/share/php/Horde/Kolab/Storage/Object.php:418
  7. Horde_Kolab_Storage_Driver_Decorator_Base->fetchComplete() 
/usr/share/php/Horde/Kolab/Storage/Driver/Decorator/Base.php:419
  8. Horde_Kolab_Storage_Driver_Imap->fetchComplete() 
/usr/share/php/Horde/Kolab/Storage/Driver/Decorator/Base.php:419
  9. Horde_Imap_Client_Base->fetch() 
/usr/share/php/Horde/Kolab/Storage/Driver/Imap.php:495
10. Horde_Imap_Client_Base->_fetchWrapper() 
/usr/share/php/Horde/Imap/Client/Base.php:2475
11. Horde_Imap_Client_Base->openMailbox() 
/usr/share/php/Horde/Imap/Client/Base.php:2508
12. Horde_Imap_Client_Socket->_openMailbox() 
/usr/share/php/Horde/Imap/Client/Base.php:1045
13. Horde_Imap_Client_Socket->_getMboxFormatOb() 
/usr/share/php/Horde/Imap/Client/Socket.php:1166
14. Horde_Imap_Client_Data_Format_Mailbox->__construct() 
/usr/share/php/Horde/Imap/Client/Socket.php:4191
15. Horde_Imap_Client_Data_Format_String->__construct() 
/usr/share/php/Horde/Imap/Client/Data/Format/Mailbox.php:47
16. Horde::debug() /usr/share/php/Horde/Imap/Client/Data/Format/String.php:62
09/09/2016 03:49:17 PM Michael Rubinsky Assigned to Michael Rubinsky
 
03/03/2016 11:49:34 PM Michael Rubinsky Comment #3 Reply to this comment
There is definitely something weird going on with 
Horde_Mime_Part::_scanStream(). The $fp stream becomes corrupt during 
the running of the stream filter, though haven't been able to track 
down any further.
02/15/2016 11:59:20 AM Jan Schneider Comment #2
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
Confirmed
02/10/2016 03:45:58 PM sca (at) andreasschulze (dot) de Comment #1 (Private)
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ fail to create a preference storage
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
[Hidden]

Saved Queries