[Libreoffice-commits] .: ucb/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Jun 28 06:25:05 PDT 2012


 ucb/source/ucp/cmis/cmis_content.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit d710723a52929a708ca0195da833ccda6a489082
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date:   Thu Jun 28 15:22:29 2012 +0200

    CMIS UCP: cached session id change was not impacted on all constructors
    
    Change-Id: I42cc76c08ce1a5e0942125d59bddf600c7ff9ee2

diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 977e2a3..f4f73e5 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -190,13 +190,14 @@ namespace cmis
         m_sURL = m_xIdentifier->getContentIdentifier( );
         cmis::URL url( m_sURL );
 
-        // Look for a cached session
-        m_pSession = pProvider->getSession( url.getBindingUrl( ) );
+        // Look for a cached session, key is binding url + repo id
+        rtl::OUString sSessionId = url.getBindingUrl( ) + url.getRepositoryId( );
+        m_pSession = pProvider->getSession( sSessionId );
         if ( NULL == m_pSession )
         {
             // Initiate a CMIS session and register it as we found nothing
             m_pSession = libcmis::SessionFactory::createSession( url.getSessionParams( ) );
-            pProvider->registerSession( url.getBindingUrl( ), m_pSession );
+            pProvider->registerSession( sSessionId, m_pSession );
         }
 
         m_sObjectPath = url.getObjectPath( );


More information about the Libreoffice-commits mailing list