6.0.0-alpha12
6/12/25

[#9931] Imap with caching is only showing the attachments some times
Summary Imap with caching is only showing the attachments some times
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 3. High
Owners slusarz (at) horde (dot) org
Requester goncalo.queiros (at) portugalmail (dot) net
Created 04/19/2011 (5168 days ago)
Due
Updated 04/21/2011 (5166 days ago)
Assigned
Resolved 04/21/2011 (5166 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/21/2011 06:22:54 PM Michael Slusarz Comment #4
Assigned to Michael Slusarz
Summary ⇒ Imap with caching is only showing the attachments some times
Version ⇒ Git master
Reply to this comment
This is a critical issue so I will release a new version of horde/Imap_Client.
04/21/2011 06:21:58 PM Michael Slusarz Comment #3
Version ⇒
Queue ⇒ Horde Framework Packages
State ⇒ Resolved
Reply to this comment
This has nothing to do with memcache - it is true for any caching 
backend.  Since objects are passed as reference, any alteration of an 
object after being returned from a fetch() command would cause those 
alterations to be stored in the cache.  We don't want this - the 
cached results should be identical to what would be returned from a 
plain fetch() call.  So clone any objects before returning to prevent 
this from happening.
04/21/2011 06:18:49 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Return cloned objects from Data results, to prevent issues when 
caching (Bug #9931)

  3 files changed, 8 insertions(+), 5 deletions(-)
http://git.horde.org/horde-git/-/commit/2c862f00899f3529ab3ff578a412563798254760
04/19/2011 12:13:06 PM goncalo (dot) queiros (at) portugalmail (dot) net Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Imap with memcache is only showing the attachments some times
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
New Attachment: message Download
State ⇒ Unconfirmed
Reply to this comment
I have Horde cache configured to work with memcache
$conf['cache']['driver'] = 'Memcache';
$conf['cache']['use_memorycache'] = 'Memcache';

And activated imap cache on imp backends.php

I open a message, and then open any attachment it contains (a new 
window is opened) and everything works as expected, and i can see the 
attachment in the new window.
If i go back to the main window and refresh it (making the message 
open again), and then go back to the attachment window and refresh it, 
i won't see the attachment anymore.
If i keep repeating the previous step, i will get alternate behaviors 
(between showing attachment and not showing).

I attached the message that i used for test

Saved Queries