6.0.0-git
2018-12-16

[#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 2016-02-10 (1040 days ago)
Due
Updated 2016-09-15 (822 days ago)
Assigned 2016-02-15 (1035 days ago)
Resolved
Milestone
Patch No

History
2016-09-15 18:12:56 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
2016-09-09 15:49:17 Michael Rubinsky Assigned to Michael Rubinsky
 
2016-03-03 23:49:34 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.
2016-02-15 11:59:20 Jan Schneider Comment #2
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
Confirmed
2016-02-10 15:45:58 sca (at) andreasschulze (dot) de Comment #1 (Private)
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ fail to create a preference storage
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
[Hidden]

Saved Queries