owncloud / owncloud/ocis

PROPFIND request to resource shared with user when deleted retains it's <oc:share-type> property

Open
#9,463 0 comments 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
When a resource is shared with a user and propfind is done to that resource from sharer with the body ``, the response will be 0. Even if the user is deleted, the value doesn't change.
Same goes with the group.
The value becomes empty only when the resource is unshared with the user or group but when they are deleted, the propfind property retains the previous value

## Steps to reproduce
1. Create a user `admin` and `einstein`
2.create a folder `test`
3.Share the folder with einstein
4. Delete the user einstein
5. PROPFIND the resources by admin

```
curl -k --location --request PROPFIND 'https://host.docker.internal:9200/remote.php/dav/spaces/a9439309-d04d-4855-8e66-aade543fa429%2478d13b96-8de1-4dfa-8886-c932831e6c04/testFolder' \
-uadmin:admin \
--data '


'
```

## Expected behavior
The XML response for sharetype should be empty

## Actual behavior
```xml


/remote.php/dav/spaces/a9439309-d04d-4855-8e66-aade543fa429$78d13b96-8de1-4dfa-8886-c932831e6c04/testFolder/



0


HTTP/1.1 200 OK


```

## Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.

```console
OCIS_XXX= Infinite Scale 6.0.0+1db4d1031c Community
OCIS_YYY=somevalue
PROXY_XXX=somevalue
```

## 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.