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 Unrecognized field "features" in ServerInfoRepresentation #928

Conversation

thomasdarimont
Copy link
Contributor

@thomasdarimont thomasdarimont commented Oct 4, 2023

Update to Keycloak 22.0.4 to accommodate for "new" features field in server response. Using 22.0.4 also in CI ensures that this is also properly tested.

What this PR does / why we need it:
The ServerInfiResponse changed in Keycloak 22.0.4 and now includes a "features" field. Without this fix keycloak-config-cli cannot be used with Keycloak 22.0.4.

Which issue this PR fixes
Fixes #927

Special notes for your reviewer:
I think it is not necessary to regenerate the realm export files for 22.0.4.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • [ X] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

I tested a keycloak-config-cli build locally with this fix and it worked with Keycloak 22.0.4.

@thomasdarimont thomasdarimont force-pushed the issue/GH-927-Fix-unrecognized-field-in-serverinfo-response branch from 596e3d2 to 1ad292f Compare October 4, 2023 10:30
@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #928 (5d8d785) into main (f82ca1b) will not change coverage.
Report is 2 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main     #928   +/-   ##
=========================================
  Coverage     95.53%   95.53%           
  Complexity     1322     1322           
=========================================
  Files            78       78           
  Lines          4273     4273           
  Branches        475      475           
=========================================
  Hits           4082     4082           
  Misses           91       91           
  Partials        100      100           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@thomasdarimont thomasdarimont force-pushed the issue/GH-927-Fix-unrecognized-field-in-serverinfo-response branch from 1ad292f to c598ecc Compare October 4, 2023 10:51
@thomasdarimont
Copy link
Contributor Author

@st3v0rr I think this PR is ready and IMHO justifies a dedicated release.

@rene6502
Copy link

rene6502 commented Oct 5, 2023

Thank you for this fix!
I suggest to also change the version in the Dockerfile.

ARG KEYCLOAK_VERSION=22.0.0 -> 22.0.4

I worked around this using

docker build --build-arg KEYCLOAK_VERSION=22.0.4

@thomasdarimont thomasdarimont force-pushed the issue/GH-927-Fix-unrecognized-field-in-serverinfo-response branch from c598ecc to a7cdd3b Compare October 5, 2023 13:24
@thomasdarimont
Copy link
Contributor Author

@rene6502 Thanks, good catch! Just updated the PR.

Update to Keycloak 22.0.4 to accommodate for "new" features field in server response.
Using 22.0.4 also in CI ensures that this is also properly tested.
Update default realm-export to 22.0.4.

Fixes adorsys#927
@thomasdarimont thomasdarimont force-pushed the issue/GH-927-Fix-unrecognized-field-in-serverinfo-response branch from a7cdd3b to 5d8d785 Compare October 5, 2023 13:30
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@st3v0rr st3v0rr merged commit e17c9e2 into adorsys:main Oct 13, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unrecognized field "features" in ServerInfoRepresentation with Keycloak 22.0.4
3 participants