| commit | 8ce2732f0a867807a9d0e70ec0966e7779d13412 | [log] |
|---|---|---|
| author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | Thu Jan 14 18:11:28 2016 +0100 |
| committer | Michael Stahl <michael.stahl@allotropia.de> | Mon Nov 01 18:35:04 2021 +0100 |
| tree | 48684269dbc9a6c420145947bdfcd1d267f0ebbc | |
| parent | 9eb6733c8fa9d69d3f2314fc1a3f510c324bd663 [diff] |
ucb: webdav-curl: tdf#101094 (7) OPTIONS: Remove resourceTypeForLocks before unlock Not needed, unlock() checks if a lock is present first. If present, it means that LOCK is available, inferring the presence of UNLOCK availability. [ port of commit fd586445a47d50ebfff67a7d5e4a329cf064cb92 ] Change-Id: I639c558c6e6f322f37d267bbc31309504745e02c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123289 Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx b/ucb/source/ucp/webdav-curl/webdavcontent.cxx index b499327..96ac6dd 100644 --- a/ucb/source/ucp/webdav-curl/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-curl/webdavcontent.cxx
@@ -658,8 +658,9 @@ uno::Any SAL_CALL Content::execute( { // unlock if ( resourceTypeForLocks( Environment ) == DAV ) unlock( Environment ); // do not check for a DAV resource // the lock store will be checked before sending unlock( Environment ); } else if ( aCommand.Name == "createNewContent" && isFolder( Environment ) )