Kaydet (Commit) d710723a authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

CMIS UCP: cached session id change was not impacted on all constructors

Change-Id: I42cc76c08ce1a5e0942125d59bddf600c7ff9ee2
üst ba23ece2
...@@ -190,13 +190,14 @@ namespace cmis ...@@ -190,13 +190,14 @@ namespace cmis
m_sURL = m_xIdentifier->getContentIdentifier( ); m_sURL = m_xIdentifier->getContentIdentifier( );
cmis::URL url( m_sURL ); cmis::URL url( m_sURL );
// Look for a cached session // Look for a cached session, key is binding url + repo id
m_pSession = pProvider->getSession( url.getBindingUrl( ) ); rtl::OUString sSessionId = url.getBindingUrl( ) + url.getRepositoryId( );
m_pSession = pProvider->getSession( sSessionId );
if ( NULL == m_pSession ) if ( NULL == m_pSession )
{ {
// Initiate a CMIS session and register it as we found nothing // Initiate a CMIS session and register it as we found nothing
m_pSession = libcmis::SessionFactory::createSession( url.getSessionParams( ) ); m_pSession = libcmis::SessionFactory::createSession( url.getSessionParams( ) );
pProvider->registerSession( url.getBindingUrl( ), m_pSession ); pProvider->registerSession( sSessionId, m_pSession );
} }
m_sObjectPath = url.getObjectPath( ); m_sObjectPath = url.getObjectPath( );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment