[Tickets #14248] Re: fail to create a preference storage

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Sep 15 18:12:56 UTC 2016


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14248
------------------------------------------------------------------------------
  Ticket             | 14248
  Updated By         | Michael Rubinsky <mrubinsk at horde.org>
  Summary            | fail to create a preference storage
  Queue              | Ingo
  Version            | 3.2.8
  Type               | Bug
  State              | Assigned
  Priority           | 1. Low
  Milestone          |
  Patch              |
-Owners             |
+Owners             | Horde Developers, Michael Rubinsky
------------------------------------------------------------------------------


Michael Rubinsky <mrubinsk at horde.org> (2016-09-15 18:12) wrote:

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





More information about the bugs mailing list