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

bugfixing keycloak user federation failing when updating default mapper simultaneously #5750

Conversation

morco
Copy link
Contributor

@morco morco commented Jan 2, 2023

SUMMARY

Current implementation of keycloak_user_federation module fails to create a new user federation when also simultaneously updating / changing a default / standard created mapper like username.
The cause of this as can be seen in the diffs is simply a variable set to None on default forgotten to be updated to proper id value.

It seems there are currently no open issues matching this bug or at least I failed to find them.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/modules/keycloak_user_federation.py

ADDITIONAL INFORMATION

Tested with recent keycloak (api) version: 20.0.2.

... user federation creation failing when also updating/changing default
mappers at the same time
@morco morco changed the title fix(modules/keycloak_user_federation): fixes ... bugfixing keycloak user federation failing when updating default mapper simultaneously Jan 2, 2023
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added WIP Work in progress bug This issue/PR relates to a bug identity integration tests/integration module module plugins plugin (any type) tests tests labels Jan 2, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-5 backport-6 Automatically create a backport for the stable-6 branch labels Jan 2, 2023
@morco morco marked this pull request as ready for review January 2, 2023 13:17
@ansibullbot ansibullbot removed the WIP Work in progress label Jan 2, 2023
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from the Ansible perspective, not very familiar with keycloak myself.

@felixfontein
Copy link
Collaborator

Same from my POV. If nobody objects in the next two weeks, I'll merge this.

@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label Jan 15, 2023
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jan 22, 2023
@felixfontein felixfontein merged commit 6781dd1 into ansible-collections:main Jan 22, 2023
@patchback
Copy link

patchback bot commented Jan 22, 2023

Backport to stable-5: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-5/6781dd19183a6c9322242461c1f6a585cca717fa/pr-5750

Backported as #5875

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jan 22, 2023
…er simultaneously (#5750)

* fix(modules/keycloak_user_federation): fixes ...

... user federation creation failing when also updating/changing default
mappers at the same time

* add changelog fragment for pr

Co-authored-by: Mirko Wilhelmi <Mirko.Wilhelmi@sma.de>
(cherry picked from commit 6781dd1)
@felixfontein
Copy link
Collaborator

@morco thanks for your contribution!
@russoz thanks for reviewing!

@patchback
Copy link

patchback bot commented Jan 22, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/6781dd19183a6c9322242461c1f6a585cca717fa/pr-5750

Backported as #5876

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jan 22, 2023
…er simultaneously (#5750)

* fix(modules/keycloak_user_federation): fixes ...

... user federation creation failing when also updating/changing default
mappers at the same time

* add changelog fragment for pr

Co-authored-by: Mirko Wilhelmi <Mirko.Wilhelmi@sma.de>
(cherry picked from commit 6781dd1)
felixfontein pushed a commit that referenced this pull request Jan 22, 2023
…tion failing when updating default mapper simultaneously (#5875)

bugfixing keycloak user federation failing when updating default mapper simultaneously (#5750)

* fix(modules/keycloak_user_federation): fixes ...

... user federation creation failing when also updating/changing default
mappers at the same time

* add changelog fragment for pr

Co-authored-by: Mirko Wilhelmi <Mirko.Wilhelmi@sma.de>
(cherry picked from commit 6781dd1)

Co-authored-by: morco <thegreatwiper@web.de>
felixfontein pushed a commit that referenced this pull request Jan 22, 2023
…tion failing when updating default mapper simultaneously (#5876)

bugfixing keycloak user federation failing when updating default mapper simultaneously (#5750)

* fix(modules/keycloak_user_federation): fixes ...

... user federation creation failing when also updating/changing default
mappers at the same time

* add changelog fragment for pr

Co-authored-by: Mirko Wilhelmi <Mirko.Wilhelmi@sma.de>
(cherry picked from commit 6781dd1)

Co-authored-by: morco <thegreatwiper@web.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-6 Automatically create a backport for the stable-6 branch bug This issue/PR relates to a bug identity integration tests/integration module module plugins plugin (any type) stale_ci CI is older than 7 days, rerun before merging tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants