canonical / identity-platform-admin-ui

Admin UI for the Canonical identity broker and identity provider solution
Other
5 stars 4 forks source link

500 response when adding identities to a group #283

Closed huwshimi closed 2 months ago

huwshimi commented 2 months ago

Doing a PATCH request to /api/v0/groups/group1/identities gets a 500 response with payload: {identities: ["johndoe"]}.

The API responds with:

{
    "data": null,
    "message": "Write validation error for POST Write with body {\"code\":\"validation_error\",\"message\":\"Invalid tuple 'group:group1#member#member@user:johndoe'. Reason: invalid 'object' field format\"}\n with error code validation_error error message: Invalid tuple 'group:group1#member#member@user:johndoe'. Reason: invalid 'object' field format",
    "status": 500,
    "_meta": null
}

I double checked that I'm doing a PATCH request, even though the error message mentions "POST".

Could there be some kind of internal issue with how it's constructing the tuple? There seems to be a double "#member#member".

syncronize-issues-to-jira[bot] commented 2 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-847.

This message was autogenerated