summaryrefslogtreecommitdiffstats
path: root/comphelper/source
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-08-16 16:41:22 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2013-09-02 13:51:55 +0200
commitb378e754ae892a044460cfbe33ccc2e51c01f5ca (patch)
treeb8070908365a5b6d278bfed1e63cedee9e89aa4a /comphelper/source
parentUpdated internal libcmis to 0.4.0 (diff)
downloadcore-b378e754ae892a044460cfbe33ccc2e51c01f5ca.tar.gz
core-b378e754ae892a044460cfbe33ccc2e51c01f5ca.zip
CMIS: fix file saving issue
Change-Id: I60cccb841fea5ce493f004c73ecf50468019f860
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/mediadescriptor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/comphelper/source/misc/mediadescriptor.cxx b/comphelper/source/misc/mediadescriptor.cxx
index fd2ff28c0e5f..3d327af8589b 100644
--- a/comphelper/source/misc/mediadescriptor.cxx
+++ b/comphelper/source/misc/mediadescriptor.cxx
@@ -484,7 +484,10 @@ sal_Bool MediaDescriptor::impl_addInputStream( sal_Bool bLockFile )
throw css::uno::Exception("Found no URL.",
css::uno::Reference< css::uno::XInterface >());
- return impl_openStreamWithURL( removeFragment(sURL), bLockFile );
+ // Parse URL! Only the main part has to be used further. E.g. a jumpmark can make trouble
+ // We need to keep the full URL with Mark to store the Object ID
+ // in CMIS UCB
+ return impl_openStreamWithURL( sURL, bLockFile );
}
catch(const css::uno::Exception& ex)
{