Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sharing NG] Unable to remove groups from spaces #8768

Closed
JammingBen opened this issue Apr 3, 2024 · 1 comment · Fixed by #8805
Closed

[Sharing NG] Unable to remove groups from spaces #8768

JammingBen opened this issue Apr 3, 2024 · 1 comment · Fixed by #8805
Assignees
Labels

Comments

@JammingBen
Copy link
Contributor

Describe the bug

Removing groups from space memberships is not possible.

Steps to reproduce

  1. Add a group to a space as member (see curl down below)
  2. Remove this group again (see curl down below)

Expected behavior

The group will be removed.

Actual behavior

There is an error: rpc error: code = Internal desc = runtime error: invalid memory address or nil pointer dereference.

Curls

Invite: curl $'https://host.docker.internal:9200/graph/v1beta1/drives/1c1a1c30-ec26-434e-b328-faf26ee52999%24bed97b18-a645-4946-933f-663d3f589af4/items/1c1a1c30-ec26-434e-b328-faf26ee52999%24bed97b18-a645-4946-933f-663d3f589af4\u0021bed97b18-a645-4946-933f-663d3f589af4/invite' \ -H 'authorization: {token}' \ --data-raw '{"roles":["a8d5fe5e-96e3-418d-825b-534dbdf22b99"],"expirationDateTime":null,"recipients":[{"objectId":"509a9dcd-bb37-4f4f-a01a-19dca27d9cfa","@libre.graph.recipient.type":"group"}]}' \ --insecure

Remove: curl $'https://host.docker.internal:9200/graph/v1beta1/drives/1c1a1c30-ec26-434e-b328-faf26ee52999%24bed97b18-a645-4946-933f-663d3f589af4/items/1c1a1c30-ec26-434e-b328-faf26ee52999%24bed97b18-a645-4946-933f-663d3f589af4\u0021bed97b18-a645-4946-933f-663d3f589af4/permissions/g%3A509a9dcd-bb37-4f4f-a01a-19dca27d9cfa' \ -X 'DELETE' \ -H 'authorization: {token}' \ --insecure

@rhafer rhafer added the Priority:p3-medium Normal priority label Apr 3, 2024
@phil-davis
Copy link
Contributor

I am surprised that there is no test case for this, I expected that there would be a failing test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants