[#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, mrubinsk@horde.org
Requester sca@andreasschulze.de
Created 2016-02-10 (1252 days ago)
Due
Updated 2016-09-15 (1034 days ago)
Assigned 2016-02-15 (1247 days ago)
Resolved
Milestone
Patch No

Comments
Jan Schneider <jan@horde.org> 2016-02-15 11:59:20
Confirmed

Michael Rubinsky <mrubinsk@horde.org> 2016-03-03 23:49:34
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.

Michael Rubinsky <mrubinsk@horde.org> 2016-09-15 18:12:56
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