Skip to content

decomposed fs. 500 when user tries to delete group from space #2799

Closed

Description

@v-scharf

Describe the bug

seems works using posixfs but fails in decomposed

Steps to reproduce

Scenario: user of a group cannot remove own group from project space if it is the last manager using root endpoint
    Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
    And group "group1" has been created
    And user "Brian" has been added to group "group1"
    And user "Alice" has created a space "NewSpace" with the default quota using the Graph API
    And user "Alice" has sent the following space share invitation:
      | space           | NewSpace |
      | sharee          | group1   |
      | shareType       | group    |
      | permissionsRole | Manager  |
    And user "Alice" has removed own access from space "NewSpace"
    When user "Brian" tries to remove the access of group "group1" from space "NewSpace" using root endpoint of the Graph API
    Then the HTTP status code should be "403"
    And the user "Brian" should have a space called "NewSpace"

Expected behavior

403

Actual behavior

500 see here https://ci.opencloud.rocks/repos/3/pipeline/50/258

DELETE /graph/v1beta1/drives/380d59c0-9ffb-48d3-9718-8f2e043bee23$25d2300a-0a27-4aed-9e60-d8a3bd3377df/root/permissions/380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:9b8a5d6b-0bb7-48b5-b32b-3737ad1538df
		X-Request-ID: apiSharingNg1/removeAccessToDrive.feature:145-156

		<== RESPONSE [2026-05-20T8:50:17]
		500 Internal Server Error
		X-Xss-Protection: 1; mode=block
		<== RES BODY
		{"error":{"code":"generalException","innererror":{"date":"2026-05-20T08:50:17Z","request-id":"apiSharingNg1/removeAccessToDrive.feature:145-156"},"message":"error getting share when committing to the storage"}}

Setup

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

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

Activity

  1. moved this from Qualification to Prio 2 in OpenCloud Team Boardon May 20, 2026
  2. self-assigned this
    on May 20, 2026
  3. moved this from Prio 2 to In Progress in OpenCloud Team Boardon May 20, 2026
  4. rhafer commented on May 21, 2026

    @rhafer
    Member

    Hm, I just got the same failure locally when running with posix. So this does not seem to be specific to decomposedfs 🤔

  5. rhafer commented on May 21, 2026

    @rhafer
    Member

    Hm, this looks like an issue with the test itself to me. From the api-test-failure-logs (https://ci.opencloud.rocks/repos/3/pipeline/50/259):

    User Alice invites group1 to the space:

    ### And user "Alice" has sent the following space share invitation:
    ...
    		POST /graph/v1beta1/drives/380d59c0-9ffb-48d3-9718-8f2e043bee23$25d2300a-0a27-4aed-9e60-d8a3bd3377df/root/invite
    ...
    		<== RESPONSE [2026-05-20T8:50:17]
    		200 OK
    		X-Xss-Protection: 1; mode=block
    		<== RES BODY
    		{"value":[{"createdDateTime":"2026-05-20T08:50:17.516539835Z","grantedToV2":{"group":{"displayName":"group1","id":"24a53b74-2ada-411b-961f-56cdd865a343"}},"id":"380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:410a404f-13d4-4a8a-92c2-910288ca053a","invitation":{"invitedBy":{"user":{"@libre.graph.userType":"Member","displayName":"Alice Hansen","id":"dd29ab12-f3cb-4244-bc85-ec96be1fbc25"}}},"roles":["312c0871-5ef7-4b3a-85b6-0e4074c64049"]}]}
    

    That gives back the permission id 380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:410a404f-13d4-4a8a-92c2-910288ca053a

    Then Alice tries to remove herself from the space. First it list permission to get the correct permission id:

    	### And user "Alice" has removed own access from space "NewSpace"
    ...
    		GET /graph/v1beta1/drives/380d59c0-9ffb-48d3-9718-8f2e043bee23$25d2300a-0a27-4aed-9e60-d8a3bd3377df/root/permissions
    ...
    		<== RES BODY
    		{"@libre.graph.permissions.actions.allowedValues":["libre.graph/driveItem/permissions/create","libre.graph/driveItem/children/create","libre.graph/driveItem/standard/delete","libre.graph/driveItem/path/read","libre.graph/driveItem/quota/read","libre.graph/driveItem/content/read","libre.graph/driveItem/upload/create","libre.graph/driveItem/permissions/read","libre.graph/driveItem/children/read","libre.graph/driveItem/versions/read","libre.graph/driveItem/deleted/read","libre.graph/driveItem/path/update","libre.graph/driveItem/permissions/delete","libre.graph/driveItem/deleted/delete","libre.graph/driveItem/versions/update","libre.graph/driveItem/deleted/update","libre.graph/driveItem/basic/read","libre.graph/driveItem/permissions/update","libre.graph/driveItem/permissions/deny"],"@libre.graph.permissions.roles.allowedValues":[{"@libre.graph.weight":40,"description":"View and download.","displayName":"Can view","id":"a8d5fe5e-96e3-418d-825b-534dbdf22b99"},{"@libre.graph.weight":90,"description":"View, download, upload, edit, add, delete including the history.","displayName":"Can edit","id":"58c63c02-1d89-4572-916a-870abc5a1b7d"},{"@libre.graph.weight":120,"description":"View, download, upload, edit, add, delete and manage members.","displayName":"Can manage","id":"312c0871-5ef7-4b3a-85b6-0e4074c64049"}],"value":[{"createdDateTime":"2026-05-20T08:50:17.432589453Z","grantedToV2":{"user":{"@libre.graph.userType":"Member","displayName":"Alice Hansen","id":"dd29ab12-f3cb-4244-bc85-ec96be1fbc25"}},"id":"380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:9b8a5d6b-0bb7-48b5-b32b-3737ad1538df","invitation":{"invitedBy":{"user":{"@libre.graph.userType":"Member","displayName":"Alice Hansen","id":"dd29ab12-f3cb-4244-bc85-ec96be1fbc25"}}},"roles":["312c0871-5ef7-4b3a-85b6-0e4074c64049"]},{"createdDateTime":"2026-05-20T08:50:17.516539835Z","grantedToV2":{"group":{"displayName":"group1","id":"24a53b74-2ada-411b-961f-56cdd865a343"}},"id":"380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:410a404f-13d4-4a8a-92c2-910288ca053a","invitation":{"invitedBy":{"user":{"@libre.graph.userType":"Member","displayName":"Alice Hansen","id":"dd29ab12-f3cb-4244-bc85-ec96be1fbc25"}}},"roles":["312c0871-5ef7-4b3a-85b6-0e4074c64049"]}]}
    
    

    The it sends the delete request. Using the correct permission id for the Alex permission (380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:9b8a5d6b-0bb7-48b5-b32b-3737ad1538df)

    		==> REQUEST [2026-05-20T8:50:17]
    		DELETE /graph/v1beta1/drives/380d59c0-9ffb-48d3-9718-8f2e043bee23$25d2300a-0a27-4aed-9e60-d8a3bd3377df/root/permissions/380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:9b8a5d6b-0bb7-48b5-b32b-3737ad1538df
    		X-Request-ID: apiSharingNg1/removeAccessToDrive.feature:145-155
    
    		<== RESPONSE [2026-05-20T8:50:17]
    		204 No Content
    

    Now Brian tries to the remove the group1 permission. However it use the same permission id as above instead of the permission id for the group1 share ( which would be 380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:410a404f-13d4-4a8a-92c2-910288ca053a)

    		==> REQUEST [2026-05-20T8:50:17]
    		DELETE /graph/v1beta1/drives/380d59c0-9ffb-48d3-9718-8f2e043bee23$25d2300a-0a27-4aed-9e60-d8a3bd3377df/root/permissions/380d59c0-9ffb-48d3-9718-8f2e043bee23:25d2300a-0a27-4aed-9e60-d8a3bd3377df:9b8a5d6b-0bb7-48b5-b32b-3737ad1538df
    		X-Request-ID: apiSharingNg1/removeAccessToDrive.feature:145-156
    
    		<== RESPONSE [2026-05-20T8:50:17]
    		500 Internal Server Error
    		X-Xss-Protection: 1; mode=block
    		<== RES BODY
    		{"error":{"code":"generalException","innererror":{"date":"2026-05-20T08:50:17Z","request-id":"apiSharingNg1/removeAccessToDrive.feature:145-156"},"message":"error getting share when committing to the storage"}}
    
    

    @ScharfViktor could you take a look?

  6. assigned and unassigned on May 21, 2026
  7. v-scharf commented on May 22, 2026

    @v-scharf
    ContributorAuthor

    @ScharfViktor could you take a look?

    I found -> test was skipped here 6a05b70

    I'll do it later, after release. here is ticket opencloud-eu/qa#87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions