summaryrefslogtreecommitdiffstats
path: root/ucb/source/ucp/cmis/cmis_content.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/cmis/cmis_content.cxx')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 977e2a3761ed..f4f73e59158c 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( );