summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-06-28 15:22:29 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-06-28 15:26:05 +0200
commitdb21b52e446d43624a9ee829300b42f6906999a8 (patch)
tree9603a7618cef461bc185729de0d2d4a467929abb /ucb
parent91b6ab615b4f72832412b4f4a8c633f93952a17f (diff)
CMIS UCP: cached session id change was not impacted on all constructors
Change-Id: I42cc76c08ce1a5e0942125d59bddf600c7ff9ee2
Diffstat (limited to 'ucb')
-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( );