Skip to content

404 while deleting worksapce-level group #384

@mwojtyczka

Description

@mwojtyczka

While replacing groups the tool is trying to attempt to delete groups that were already deleted. It seems there is a race condition in the _replace_group method.

Error:
07:26 INFO [d.l.ucx.workspace_access.groups] Deleting the workspace-level group idm2bcd_dssi03prod_smg_super with id 439677076072037 07:26 DEBUG [d.s] DELETE /api/2.0/preview/scim/v2/Groups/439677076072037 < 404 Not Found < { < "detail": "Group with id 439677076072037 not found.", < "schemas": [ < "urn:ietf:params:scim:api:messages:2.0:Error" < ], < "status": "404" < }

the following code in the _replace_group is not thread-safe:
self._workspace_groups = [g for g in self._workspace_groups if g.id != ws_group.id]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions