diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-11 18:28:52 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-11 18:28:52 +0200 |
commit | aaddd17317ece20a46e7c3586ce43a95a5db2059 (patch) | |
tree | a63c694e69e6403567bcc7a5c9e7fe2cfcbda4d7 | |
parent | 62949c26ba68e2ea74b526a6115b63cd2b379c69 (diff) |
CMIS UCP: getChildren created wrong path if there is no trailing /
Change-Id: I4cb4e691046c92303cab9f0b97fa19d9ad68d34f
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 912569183fdf..3349e0f9727f 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -1179,7 +1179,11 @@ namespace cmis // TODO Cache the objects URL aUrl( m_sURL ); - aUrl.setObjectPath( m_sObjectPath + STD_TO_OUSTR( ( *it )->getName( ) ) ); + rtl::OUString sPath( m_sObjectPath ); + if ( sPath[sPath.getLength( ) - 1] != '/' ) + sPath += "/"; + sPath += STD_TO_OUSTR( ( *it )->getName( ) ); + aUrl.setObjectPath( sPath ); uno::Reference< ucb::XContentIdentifier > xId = new ucbhelper::ContentIdentifier( aUrl.asString( ) ); uno::Reference< ucb::XContent > xContent = new Content( m_xSMgr, m_pProvider, xId, *it ); |