core
core copied to clipboard
[New/old webdav] HTTP response code differ while getting last share information of deleted share
Steps to reproduce
- create user 'user1' and 'user2'
- upload folder 'folder1'
- share folder 'folder1' with 'user2'
- delete last share with 'user2'
- get the information of last share
curl -u user1:password -X GET http://localhost/core/ocs/v2.php/apps/files_sharing/api/v1/shares/{shareid} -v
Expected behaviour
In both new/old webdav, same HTTP status code
HTTP/1.1 404 Not Found
Actual behaviour
In old webdav, HTTP/1.1 200 OK
In new webdav, HTTP/1.1 404 Not Found
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