[Tickets #9392] sql based permissions cache expire bug with save

bugs at horde.org bugs at horde.org
Tue Nov 16 10:16:31 UTC 2010


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

Ticket URL: http://bugs.horde.org/ticket/9392
------------------------------------------------------------------------------
  Ticket             | 9392
  Created By         | vamos at netikka.fi
  Summary            | sql based permissions cache expire bug with save
  Queue              | Horde Base
  Version            | 3.3.10
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


vamos at netikka.fi (2010-11-16 05:16) wrote:

When using SQL based permissions and cache, the SQLObject_Permission  
class save method is incorrectly expiring wrong cache entry  
$cache->expire('perm_sql_' . $name):


# diff -u horde-3.3.10/lib/Horde/Perms/sql.php  
horde-3.3.10-new/lib/Horde/Perms/sql.php
--- horde-3.3.10/lib/Horde/Perms/sql.php        2010-10-25  
15:58:55.000000000 +0300
+++ horde-3.3.10-new/lib/Horde/Perms/sql.php    2010-11-16  
12:05:41.000000000 +0200
@@ -524,7 +524,7 @@
          }

          $cache =  
Horde_Cache::singleton($GLOBALS['conf']['cache']['driver'],  
Horde::getDriverConfig('cache', $GLOBALS['conf']['cache']['driver']));
-        $cache->expire('perm_sql_' . $name);
+        $cache->expire('perm_sql' . $name);
          $cache->expire('perm_sql_exists_' . $name);

          return true;







More information about the bugs mailing list