diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-11 18:22:23 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-11 18:22:23 +0200 |
commit | 62949c26ba68e2ea74b526a6115b63cd2b379c69 (patch) | |
tree | d32068633b164cf9d41f47115b59d470a60fb072 /ucb | |
parent | 1122c8b9e3b133e1aba5abfd07aa40f816ac9a0d (diff) |
CMIS UCP: guess the parent URL using the current path if needed
Change-Id: I5bc6e557dcdfd3a396b363325971344ad90fdd85
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index f0464623bd6e..912569183fdf 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -894,6 +894,17 @@ namespace cmis aUrl.setObjectPath( STD_TO_OUSTR( parentPath ) ); sRet = aUrl.asString( ); } + else + { + INetURLObject aUrl( m_sURL ); + if ( aUrl.getSegmentCount( ) > 0 ) + { + URL aCmisUrl( m_sURL ); + aUrl.removeSegment( ); + aCmisUrl.setObjectPath( aUrl.GetURLPath( INetURLObject::NO_DECODE ) ); + sRet = aCmisUrl.asString( ); + } + } return sRet; } |