owncloud / owncloud/ocis

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

Open
#3,512 1 comment 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug

HTTP status code for getting the last share information after deleting the last share is different in old and new WebDAV.

## Steps to reproduce

Steps to reproduce the behavior:

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 https://localhost:9200/ocs/v2.php/apps/files_sharing/api/v1/shares/{shareid} -v
```

## Expected behavior
In both new/old webdav, same HTTP status code
` HTTP/1.1 404 Not Found`

## Actual behavior
In old webdav, ` HTTP/1.1 200 OK`
In new webdav, `HTTP/1.1 404 Not Found`

## Setup

Please describe how you started the server and provide a list of relevant environment variables.

```console
OCIS_VERSION= latest
BRANCH= master
STORAGE_FRONTEND_UPLOAD_DISABLE_TUS=false
```

## Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.