[ 
https://issues.apache.org/jira/browse/CXF-7837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16608753#comment-16608753
 ] 

ASF GitHub Bot commented on CXF-7837:
-------------------------------------

ffang closed pull request #444: CXF-7837: GZIPFeature Does Not Have @Provider 
Annotation
URL: https://github.com/apache/cxf/pull/444
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPFeature.java 
b/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPFeature.java
index bd85bb90374..9e56d871609 100644
--- a/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPFeature.java
+++ b/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPFeature.java
@@ -21,6 +21,7 @@
 import java.util.List;
 
 import org.apache.cxf.Bus;
+import org.apache.cxf.annotations.Provider;
 import org.apache.cxf.common.injection.NoJSR250Annotations;
 import org.apache.cxf.feature.AbstractFeature;
 import org.apache.cxf.interceptor.Interceptor;
@@ -48,6 +49,7 @@
  * that your client can accept compressed responses.
  */
 @NoJSR250Annotations
+@Provider(value = Provider.Type.Feature)
 public class GZIPFeature extends AbstractFeature {
     private static final GZIPInInterceptor IN = new GZIPInInterceptor();
     private static final GZIPOutInterceptor OUT = new GZIPOutInterceptor();


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> GZIPFeature Does Not Have @Provider Annotation
> ----------------------------------------------
>
>                 Key: CXF-7837
>                 URL: https://issues.apache.org/jira/browse/CXF-7837
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.2.6, 3.3.0
>            Reporter: James Carman
>            Assignee: Freeman Fang
>            Priority: Minor
>
> When using the Spring Boot CxfAutoConfiguration, it requires that all 
> discoverable CXF features be annotated with the @Provider annotation (the one 
> from CXF, not JAX-RS).  Currently, the GZIPFeature class does not have that 
> annotation, so it is not discoverable.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to