While locking a non-existent resource (file/folder), a new resource should not be created and API should return with error message.
Ocis backend returns with
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns"><s:exception></s:exception><s:message>error: not found: set lock: error: not found: ddc2004c-0977-11eb-9d3f-a793888cd0f8/adddd</s:message></d:error>%
Actual behaviour
While locking a non-existent resource (file/folder), a new resource is created with an active lock
The new resource is created as an empty file. I suppose that should not happen - a 404 "not found" should be returned when attempting to lock a resource that does not exist.
Steps to reproduce
create user
uu1
lock a non-existent resource
lorem.txt
Expected behaviour
While locking a non-existent resource (file/folder), a new resource should not be created and API should return with error message. Ocis backend returns with
Actual behaviour
While locking a non-existent resource (file/folder), a new resource is created with an active lock
Server configuration
Operating system: ubuntu 20.04
Web server: apache2
Database: sqlite
PHP version: 7.4
ownCloud version: (see ownCloud admin page) git-master
Updated from an older ownCloud or fresh install: fresh
Where did you install ownCloud from: git