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

Bootstrapped status not properly handled #560

Open
snazy opened this issue Dec 15, 2024 · 0 comments
Open

Bootstrapped status not properly handled #560

snazy opened this issue Dec 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@snazy
Copy link
Member

snazy commented Dec 15, 2024

Describe the bug

The "bootstrapped" status is incorrectly assumed to be true after a single request, despite asking to run bootstrap.

Repro:

  1. Add necessary dependencies to polaris-dropwizard-service
runtimeOnly(project(":polaris-eclipselink"))
runtimeOnly(libs.h2)
runtimeOnly(libs.postgresql)
  1. Starting Polaris w/ eclipselink... using ./gradlew :polaris-dropwizard-service:runApp
  2. curl http://127.0.0.1:8181/api/catalog/v1/config --> HTTP/500 / "Error 500 java.lang.IllegalStateException: Realm is not bootstrapped, please run server in bootstrap mode." --> OK
  3. Another curl http://127.0.0.1:8181/api/catalog/v1/config --> HTTP/401 Unauthorized

To Reproduce

No response

Actual Behavior

No response

Expected Behavior

No response

Additional context

No response

System information

No response

@snazy snazy added the bug Something isn't working label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant