8000 fix: warn instead of an error if optimized provider timestamps change by shawkins · Pull Request #41798 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

fix: warn instead of an error if optimized provider timestamps change - #41798

Merged
vmuzikar merged 1 commit into
keycloak:mainfrom
shawkins:iss41268
Aug 18, 2025
Merged

vmuzikar merged 1 commit into
keycloak:mainfrom
shawkins:iss41268

Conversation

@shawkins
@shawkins shawkins commented Aug 11, 2025 •
Copy link
Copy Markdown
Contributor

closes: #41268

Decided that we could live with a default behavior of warning base upon the existing KC_RUN_IN_CONTAINER usage.

Comment on lines 241 to 242
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a nitpick for better readability, do we need the condition for warnedTimestampChanged?

Suggested change
if (warnedTimestampChanged
|| Configuration.getOptionalBooleanKcValue("run-in-container").orElse(false)) {
if (Configuration.getOptionalBooleanKcValue("run-in-container").orElse(false)) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just using the that prevent additional configuration calls as if 1 provider fails they likely all will. It's just a small optimization, so if you don't like it, it can go.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually the logic wasn't correct - we shouldn't skip the error if the jar is missing or added. See if the version reads better or if you still want to remove the warnedTimestampChanged

@shawkins
shawkins force-pushed the iss41268 branch 3 times, most recently from 1b3640c to 68ebde2 Compare August 14, 2025 20:23
closes: keycloak#41268

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM now, thanks.

I reckon it'd be good to have this backported to 26.3.

@vmuzikar
vmuzikar merged commit 02cd3dd into keycloak:main Aug 18, 2025
shawkins added a commit to shawkins/keycloak that referenced this pull request Aug 18, 2025
…keycloak#41798)

closes: keycloak#41268

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
(cherry picked from commit 02cd3dd)
vmuzikar pushed a commit that referenced this pull request Aug 18, 2025
…#41798) (#41946)

closes: #41268


(cherry picked from commit 02cd3dd)

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--optimized flag and providers jar are incompatible when used with tools changing last-modify-date

2 participants

0