ucb/source/ucp/cmis/cmis_content.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit db21b52e446d43624a9ee829300b42f6906999a8 Author: Cédric Bosdonnat <cedric.bosdon...@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( );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits