summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-05-05 15:53:09 +0200
committerjan iversen <jani@documentfoundation.org>2016-05-06 09:43:03 +0000
commitd324b4b3e1d32b25a6347f2f77ae921a584ee9b0 (patch)
tree7f67ed2bb9e2b10f4a07f6b074e5f2e2b2e1e54e /ucb
parent5c7ce42dfc35d9cceef5f05a96e813b4e3913d38 (diff)
tdf#99426 Use correct path for lock in PUT method
Change-Id: I2091024a601bebede5d2fb8596dda1054ca4ef3b Reviewed-on: https://gerrit.libreoffice.org/24691 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index e1ee6f2f703b..6a4bce97679a 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -1891,7 +1891,13 @@ int NeonSession::PUT( ne_session * sess,
ne_request * req = ne_request_create( sess, "PUT", uri );
int ret;
- ne_lock_using_resource( req, uri, 0 );
+ // tdf#99246
+ // extract the path of uri
+ // ne_lock_using_resource below compares path, ignores all the rest.
+ // in case of Web proxy active, this function uri parameter is instead absolute
+ ne_uri aUri;
+ ne_uri_parse( uri, &aUri );
+ ne_lock_using_resource( req, aUri.path, 0 );
ne_lock_using_parent( req, uri );
ne_set_request_body_buffer( req, buffer, size );