diff options
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 7 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_url.cxx | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index ba025bed58c9..abbdb73e380d 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -195,7 +195,12 @@ namespace cmis try { if ( !m_pObject.get() ) - m_pObject = m_pSession->getObject( OUSTR_TO_STDSTR( m_sObjectId ) ); + { + if ( !m_sObjectId.isEmpty( ) ) + m_pObject = m_pSession->getObject( OUSTR_TO_STDSTR( m_sObjectId ) ); + else + m_pObject = m_pSession->getRootFolder( ); + } } catch ( const libcmis::Exception& e ) { diff --git a/ucb/source/ucp/cmis/cmis_url.cxx b/ucb/source/ucp/cmis/cmis_url.cxx index 655518d58365..df225018d3a9 100644 --- a/ucb/source/ucp/cmis/cmis_url.cxx +++ b/ucb/source/ucp/cmis/cmis_url.cxx @@ -88,7 +88,11 @@ namespace cmis rtl::OUString URL::getObjectId( ) { - return m_aQuery["id"]; + rtl::OUString sResult; + map< rtl::OUString, rtl::OUString >::iterator it = m_aQuery.find( "id" ); + if ( it != m_aQuery.end( ) ) + sResult = it->second; + return sResult; } rtl::OUString URL::getBindingUrl( ) |