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

sig#578 - Keycloak Seeding | Unhandled exception #1039

Open
evegufy opened this issue Sep 26, 2024 · 1 comment
Open

sig#578 - Keycloak Seeding | Unhandled exception #1039

evegufy opened this issue Sep 26, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@evegufy
Copy link
Contributor

evegufy commented Sep 26, 2024

Description

Follow up on #910 (review)

I noticed an unhandled exception with status code 500 (Internal Server Error) during the deletion of assigned default client scopes:

"Exception":"Org.Eclipse.TractusX.Portal.Backend.Framework.ErrorHandling.ServiceException: Internal Server Error: http://sharedidp-keycloak/auth/admin/realms/master/clients/34e015a5-b944-46d8-a9f3-4bc8e856a727/default-client-scopes/ff556da8-6b2b-4fe3-97cf-4a9c93ffc3c1\n ---> Flurl.Http.FlurlHttpException: Call failed with status code 500 (Internal Server Error): DELETE http://sharedidp-keycloak/auth/admin/realms/master/clients/34e015a5-b944-46d8-a9f3-4bc8e856a727/default-client-scopes/ff556da8-6b2b-4fe3-97cf-4a9c93ffc3c1\n

Scenario:

  • master-realm is created and to default clients admin-cli, account and security-admin-console the default client scope acr is assigned
  • seeding job uses a json file for the master realm where the default client scope acr is not assigned to default clients admin-cli, account and security-admin-console
  • seeding job runs into the exception above BUT only after successfully removing the assignments of the default client scope acr from default clients admin-cli, account and security-admin-console

Why is this exception thrown if the deletion is successful?

After the seeding job ran into this error, it was running without error at the second run.
And I was able to avoid this error to begin with by adding the default client scope acr to the default clients admin-cli, account and security-admin-console.
I still think it's worth investigating this behaviour.

Additional Information

relates to #910

@evegufy
Copy link
Contributor Author

evegufy commented Oct 15, 2024

@Phil91 Phil91 assigned Phil91 and unassigned ntruchsess Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: IN PROGRESS
Development

No branches or pull requests

3 participants