You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2021/09/17 07:17:28 UTC

[GitHub] [cxf] lkoe commented on a change in pull request #851: CXF-8597: CXF JAXRS client not closing HTTP connections

lkoe commented on a change in pull request #851:
URL: https://github.com/apache/cxf/pull/851#discussion_r710811961



##########
File path: rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
##########
@@ -418,7 +418,7 @@ private Link makeAbsoluteLink(Link link) {
 
     public <T> T doReadEntity(Class<T> cls, Type t, Annotation[] anns)
         throws ProcessingException, IllegalStateException {
-        return doReadEntity(cls, t, anns, false);
+        return doReadEntity(cls, t, anns, !InputStream.class.isAssignableFrom(cls));

Review comment:
       the bug author here :-)
   @andymc12 the use case in question is a simplistic JAXRS Proxy Client where user code really has no access to the response object. 
   Something like this:
   ```
       public interface TestResource {
   
           @POST
           @Path("/test")
           @Consumes(MediaType.APPLICATION_JSON)
           @Produces(MediaType.APPLICATION_JSON)
           TestModel test(TestModel body);
       }
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cxf.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org