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

fix(config-api): scope creation error when restarted multiple config-api instance #2937

Closed
pujavs opened this issue Nov 9, 2022 · 1 comment · Fixed by #2949 or #3126
Closed

fix(config-api): scope creation error when restarted multiple config-api instance #2937

pujavs opened this issue Nov 9, 2022 · 1 comment · Fixed by #2949 or #3126
Assignees
Labels
kind-bug Issue or PR is a bug in existing functionality

Comments

@pujavs
Copy link
Contributor

pujavs commented Nov 9, 2022

Describe the bug
when running CN upgrade to latest config-api 1.0.4 snapshot, config-api creates missing scopes
this work flawlessly when there is 1 instance/replica of config-api
but when there are 2 replicas running at the same time, each config-api creates same scope (based on jansId)

To Reproduce
Steps to reproduce the behaviour:

  1. Restart multiple config-api instance
  2. On start-up error is displayed
  3. Error jakarta.ws.rs.WebApplicationException: Multiple Scope with same name - https://jans.io/oauth/config/agama.write
    Expected behaviour
    all confi-api instance should start without error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
-NA

Smartphone (please complete the following information):

  • NA

Additional context
Add any other context about the problem here.

@pujavs pujavs self-assigned this Nov 9, 2022
@mo-auto mo-auto added the kind-bug Issue or PR is a bug in existing functionality label Nov 9, 2022
@pujavs pujavs reopened this Nov 11, 2022
@moabu moabu added this to the 1.0.5 milestone Nov 14, 2022
@pujavs
Copy link
Contributor Author

pujavs commented Nov 30, 2022

Implemented static scope inum creation.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
3 participants