Repository navigation
Reverts the enhanced CDI integration added in RESTEASY-3755, which should not have gone into a maintenance release, and backports bug fixes from main. - #5130
Merged
Conversation
… on the required Servlet types when Servlet is present." This reverts commit accab09. The producers for the Jakarta Servlet types were only required for the enhanced CDI integration of RESTEASY-3755, which is reverted. The @default beans they registered caused an ambiguous resolution, WELD-001409, for applications which provide their own bean for one of these types. https://redhat.atlassian.net/browse/RESTEASY-3822 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: James R. Perkins <[email protected]>
…nnotated parameters with CDI. Ensure invalid CDI resource beans are ignored by the CDI extension and processed by RESTEasy." This reverts commit f086afa. The enhanced CDI integration changed how RESTEasy and CDI interact in ways which caused issues, e.g. RESTEASY-3790. Fixing them requires the CDI integration of RESTEASY-3807, which is part of RESTEasy 8.0 and Jakarta REST 5.0. The later changes to the same files from RESTEASY-3793, RESTEASY-3794 and RESTEASY-3797 are kept. Release note: CDI injection of @*Param values, and of @context members through CDI, controlled by dev.resteasy.cdi.enhanced.enabled, has been removed. It was added in error in a maintenance release and is available in RESTEasy 8.0. On 7.0 it was enabled by default; on 6.2 only applications which set dev.resteasy.cdi.enhanced.enabled=true are affected. https://redhat.atlassian.net/browse/RESTEASY-3822 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: James R. Perkins <[email protected]>
… RESTEASY-3755 The fix for RESTEASY-3752 was part of the RESTEASY-3755 commit. Do not add a resource, provider or Application class which cannot be proxied to the bean container, so RESTEasy creates it rather than failing the deployment when CDI does not register it as a bean. A class is only proxyable if it has a non-private no-arg constructor. https://redhat.atlassian.net/browse/RESTEASY-3822 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: James R. Perkins <[email protected]> (cherry picked from commit 830141e) Signed-off-by: James R. Perkins <[email protected]>
…ation Push and restore the Configuration, as well as the Providers, for a client invocation, so a provider shared by the client and server sees the client's Configuration while the client invokes it. https://redhat.atlassian.net/browse/RESTEASY-3817 Signed-off-by: James R. Perkins <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 2ec6e87) Signed-off-by: James R. Perkins <[email protected]>
…f a CDI managed resource is also a bean When a subclass of a CDI managed resource is also a bean, resolving the bean of the resource class was ambiguous. Prefer the bean whose bean class is the type, or an alternative. https://redhat.atlassian.net/browse/RESTEASY-3819 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: James R. Perkins <[email protected]> (cherry picked from commit 51cb2a0) Signed-off-by: James R. Perkins <[email protected]>
…sourceContext.getResource() Create the constructor injector from the class with the InjectorFactory, rather than picking the constructor first, so a CDI bean whose only constructor is an @Inject constructor with parameters not annotated with @context can be created. https://redhat.atlassian.net/browse/RESTEASY-3821 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: James R. Perkins <[email protected]> (cherry picked from commit e783bfe) Signed-off-by: James R. Perkins <[email protected]>
…y a deployment which failed to start A failed start never reaches stop(), so the deployment's factory stayed the global instance and was used by other deployments, e.g. their REST clients. https://redhat.atlassian.net/browse/RESTEASY-3824 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: James R. Perkins <[email protected]> (cherry picked from commit b99bf46) Signed-off-by: James R. Perkins <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverted
dev.resteasy.cdi.enhanced.enabled, CDI injection of@*Paramvalues and of@Contextmembers through CDI), including its CI job@Defaultbeans caused a WELD-001409 ambiguous resolution for applications which provide their own bean for one of these typesRelease note
CDI injection of
@*Paramvalues, and of@Contextmembers through CDI, controlled bydev.resteasy.cdi.enhanced.enabled, has been removed. It was added in error in a maintenance release and is available in RESTEasy 8.0. On 6.2 only applications which setdev.resteasy.cdi.enhanced.enabled=trueare affected.HttpServletResponseandServletConfigcan no longer be injected with@Inject; use@Context.Fixes
Configurationfor a client invocationInjectorFactoryinResourceContext.getResource()ResteasyProviderFactoryinstalled by a deployment which failed to start