need to convert cache id because it might contain dashes
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 4 Aug 2016 13:28:22 +0000 (15:28 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Thu, 4 Aug 2016 16:11:55 +0000 (18:11 +0200)
... from ldap uuids for example

Change-Id: I241a75ed654809620fafd669542734885264d628
Reviewed-on: http://gerrit.tine20.com/customers/3408
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Tinebase/Server/Json.php

index ba40a10..0b1f287 100644 (file)
@@ -210,8 +210,8 @@ class Tinebase_Server_Json extends Tinebase_Server_Abstract implements Tinebase_
                     'logger'                    => Tinebase_Core::getLogger(),
                 ));
                 $cache->setBackend(Tinebase_Core::getCache()->getBackend());
-                $cacheId = '_handle_' . sha1(Zend_Json_Encoder::encode($classes)) . '_' .
-                    (self::userIsRegistered() ? Tinebase_Core::getUser()->getId() : 'anon');
+                $cacheId = Tinebase_Helper::convertCacheId('_handle_' . sha1(Zend_Json_Encoder::encode($classes)) . '_' .
+                    (self::userIsRegistered() ? Tinebase_Core::getUser()->getId() : 'anon'));
                 
                 $server = $cache->load($cacheId);
                 if ($server instanceof Zend_Json_Server) {