core icon indicating copy to clipboard operation
core copied to clipboard

[New/old webdav] HTTP response code differ while getting last share information of deleted share

Open amrita-shrestha opened this issue 3 years ago • 0 comments

Steps to reproduce

  1. create user 'user1' and 'user2'
  2. upload folder 'folder1'
  3. share folder 'folder1' with 'user2'
  4. delete last share with 'user2'
  5. 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

amrita-shrestha avatar Apr 12 '22 07:04 amrita-shrestha