diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-06-28 15:22:29 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-06-28 15:23:27 +0200 |
commit | d710723a52929a708ca0195da833ccda6a489082 (patch) | |
tree | ca1ce688237b30ebbaf5ca8bb03c09a8a0c5b0b8 /ucb/source | |
parent | ba23ece286671f8f9b5baf245239996e1e1fabdb (diff) |
CMIS UCP: cached session id change was not impacted on all constructors
Change-Id: I42cc76c08ce1a5e0942125d59bddf600c7ff9ee2
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 7 |
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( ); |