ocis icon indicating copy to clipboard operation
ocis copied to clipboard

Issues with spaces and deleted users and/or groups

Open someone-somenet-org opened this issue 10 months ago • 2 comments

Describe the bug

Deleting users and groups can lead to spaces with no more managers and/or the spaces can become fully inaccessible.

There doesn't seem to be a way to add managers to spaces as system admin or spaces admin.

Also deleted users and groups are still considered existent, somehow, but cant be deleted from the space managers' memberships view.

Steps to reproduce

  1. create group or user (doesn't matter, both lead to the same set of issues).
  2. create space.
  3. add group or user (as manager) to said space.
  4. delete group or user.

Expected behavior

  • Refuse to delete user and/or group if they are still mapped to some space.
  • Allow system/space admins to edit every space's memberships.
  • Allow removing or automatically remove deleted users and/or groups from space memberships.

Actual behavior

image

Not only did I end up with an inaccessible space as I deleted all members, the admin page still displays 3 members (2 deleted users + 1 deleted group) which no longer exist, there seems to be no way to fix this.

image Also if im still a spaces' manager, I cant remove deleted users/groups from space memberships, since they dont show up in the membership view...

image ... yet they somehow show up in the administrative space membership view...

Setup

Localhost test setup.

OCIS_INSECURE=true PROXY_HTTP_ADDR=0.0.0.0:9200 OCIS_URL=https://localhost:9200 ./ocis server

someone-somenet-org avatar Apr 24 '24 10:04 someone-somenet-org

This is a known issue.

micbar avatar Apr 26 '24 14:04 micbar

There is already a proposed fix: https://github.com/owncloud/ocis/issues/5967

kobergj avatar May 02 '24 13:05 kobergj

Closing here, duplicate has already been linked above.

micbar avatar Jun 19 '24 20:06 micbar