Repository navigation
Upgrade Resteasy v4 - #10917
Upgrade Resteasy v4#10917
Conversation
1581112 to
cb1e83c
Compare
c0774b9 to
6f86a57
Compare
|
@abstractj Looks like test suite is passing now. The last failure was related to the providers defined in the In v4, enabling the GZIP providers was causing responses to be encoded twice. For instance, serving |
|
This needs to wait to after Keycloak 18, as EAP 7.4 is using RestEasy 3 |
There was a problem hiding this comment.
Looks okay to me, a few question/comments though:
- We need to run internal pipelines against this
- Can this cause some breaking changes to adapters/clients? Do we still support RestEasy 3 at all on the client side, for example in the admin client? Is upgrade to HttpClient a potentially breaking change? I presume we'll at the very least will require some notice around this in migration guide?
- Unsure about the SPNEGO support in HttpClientBuilder. Do we use this for Kerberos support? If so we need to make sure this stuff is tested
- Is this really two upgrades in one? HttpClient upgrade as well as RestEasy? I presume that's because RestEasy 4 requires a newer HttpClient?
I don't think it will be a breaking change. The reason is that adapters and clients are wrapping the dependency and we don't really expected people relying on internals. But yeah, it deserves a release note at the very minimum.
AFAIK, the testsuite (GHA) also checks SPNEGO. I can double check.
|
Yes, this stuff is used in the Kerberos tests ( But I don't see any issues with the approach. SPNEGO is not needed by adapters itself, and so in theory shouldn't be needed in the |
|
@mabartos I was able to reproduce and fix the issue by removing this dependency from the tomcat classpath: Would you be able to check it again? You should also be able to run using the IDE. |
There was a problem hiding this comment.
@pedroigor Thanks for fixing the issue with Tomcat.
I tried to reproduce it and those tests passed for Tomcat 8 and Tomcat 9. I don't think is necessary to execute pipeline tests, as only the Tomcat module was affected. Those changes were locally verified and the correctness is confirmed.
Regarding the mentioned changes for SAML HttpClientBuilder, I'd like to resolve it in some follow-up task in order to speed up the process as it's not a blocking issue.
Could you please create an issue for it?
|
@pedroigor What's the current status? Anything else need to be done? |
|
@mabartos For me, it is done. Need someone to review/approve ... |
There was a problem hiding this comment.
Haven't got a chance to take a look at the code more deeply, but from a QE perspective, I can approve this PR. Pipeline tests passed and the necessary manual testing of a particular component passed as well.
@pedroigor Please, don't forget to create a follow-up issue to apply the HttpClientBuilder changes also to the representation of HttpClientBuilder in the adapters/saml module. Thanks!
It'd be also good to retry the GH actions for Base testsuite (undertow-map, group1) combination.
There was a problem hiding this comment.
My previous comments have been addressed.
|
@pedroigor could you please double-check the failures on the Keycloak CI / Base testsuite? Not sure if they are related with those changes. |
|
@abstractj Does not seem related. Running the failing tests. |
|
@pedroigor waiting for the CI feedback for us to merge. |
|
The current run looks a lot better, all undertow tests completed. The quickstart test seems unrelated to this change and flaky. Maybe a maintainer could rerun it. As I was involved in preparing this PR on the last yards (fixing a double dependency in the test suite), I am hesitant to approve it. Still, I approve the rest of it. |
4f9aa5f to
1d262cc
Compare
|
@ahus1 Thanks for the fix. PR rebased and squashed. |
Closes keycloak#10916 Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
There was a problem hiding this comment.
Approving Pedros' parts. Thanks for the PR, happy to join this teamwork!
|
Started a pipeline run to be sure. https://keycloak-build-pipeline.com/job/keycloak-build-pipeline/809/ |
|
Fantastic work! I'm waiting for @mabartos feedback, so we can merge. |
There was a problem hiding this comment.
LGTM! Failures in the server and adapter pipeline are not related to this PR.
Closes #10916
resteasy-coreinstead ofresteasy-jaxrsorg.jboss.resteasy:resteasy-jaxrsmodule dependency, which points toresteasy-coremodule.