6.0.0-beta1
7/12/25

[#11305] Kolab storage: Move of objects does not update the cache
Summary Kolab storage: Move of objects does not update the cache
Queue Horde Framework Packages
Queue Version Git develop
Type Bug
State Resolved
Priority 1. Low
Owners wrobel (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 07/21/2012 (4739 days ago)
Due
Updated 11/22/2012 (4615 days ago)
Assigned 08/21/2012 (4708 days ago)
Resolved 11/22/2012 (4615 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/22/2012 08:13:13 PM Gunnar Wrobel Comment #7
State ⇒ Resolved
Reply to this comment
Thanks for the hint. Should be fixed.
11/22/2012 07:24:05 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit b93dd25d9d6e4857716e430f7a80e80604179d65
Author: Gunnar Wrobel <p@rdus.de>
Date:   Tue Nov 20 09:29:50 2012 +0100

     Correct cache update after move. Bug #11305.

  .../lib/Horde/Kolab/Storage/Data/Base.php          |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/b93dd25d9d6e4857716e430f7a80e80604179d65
11/07/2012 08:55:34 AM Thomas Jarosch Comment #5 Reply to this comment

[Show Quoted Text - 13 lines]
I have a quick question regarding this code change:

The added code in move() looks like this:
--------------------------------------
...
         $this->synchronize(
             array(
                 'changes' => array(
                     Horde_Kolab_Storage_Folder_Stamp::ADDED => array(),
                     Horde_Kolab_Storage_Folder_Stamp::DELETED => 
array($object_id)
                 )
             )
         );
--------------------------------------

Shouldn't it be "Horde_Kolab_Storage_Folder_Stamp::DELETED => array($uid)"?

That's the way the "delete" code a few lines below works.
Still everything seems to work fine, I'm just asking.

10/15/2012 08:41:21 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (develop):

commit dbde575d75584f0fe2da3f67f91e13e62f30eebe
Author: Gunnar Wrobel <p@rdus.de>
Date:   Tue Aug 21 10:17:58 2012 +0200

     Quick fix for the moving issue #11305.

  .../lib/Horde/Kolab/Storage/Data/Base.php          |    8 ++++++++
  kronolith/lib/Driver/Kolab.php                     |    7 +++----
  mnemo/lib/Driver/Kolab.php                         |    1 +
  nag/lib/Driver/Kolab.php                           |    3 ++-
  4 files changed, 14 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/dbde575d75584f0fe2da3f67f91e13e62f30eebe
09/29/2012 08:58:51 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit dbde575d75584f0fe2da3f67f91e13e62f30eebe
Author: Gunnar Wrobel <p@rdus.de>
Date:   Tue Aug 21 10:17:58 2012 +0200

     Quick fix for the moving issue #11305.

  .../lib/Horde/Kolab/Storage/Data/Base.php          |    8 ++++++++
  kronolith/lib/Driver/Kolab.php                     |    7 +++----
  mnemo/lib/Driver/Kolab.php                         |    1 +
  nag/lib/Driver/Kolab.php                           |    3 ++-
  4 files changed, 14 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/dbde575d75584f0fe2da3f67f91e13e62f30eebe
08/21/2012 06:39:40 AM Gunnar Wrobel Comment #2
State ⇒ Assigned
Assigned to Gunnar Wrobel
Reply to this comment
Tackling this now.
07/21/2012 05:26:37 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Kolab storage: Move of objects does not update the cache
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

moving an object in mnemo or nag is currently broken:

The message is moved on the IMAP server but the horde cache is not updated.
This results in a horde exception once the active application tries to 
access it after the move.

Rant of the day:
I've tried for two hours to understand the new code Kolab_Storage code 
structure and still don't fully get the details. Compared to Horde 4, 
the size/complexity of the Kolab backend increased from 14 php files 
to 81 files. Lines of code exploded from 7030 to 18742 (not counting 
the unit tests).

I'm also wondering why we need five different IMAP driver 
implementations in Kolab_Storage?

Cheers,
Thomas

Saved Queries