-
Bug
-
Resolution: Done
-
Major
-
1.2.RC1, 1.2.GA, 1.2.1.GA
-
None
-
Low
When you have a client interface's method declared like:
@GET
public InputStream get...(...) ;
Then org.jboss.resteasy.client.core.ClientInvoker.extractEntity(BaseClientResponse) releases the connection whithout checking for !InputStream.class.isInstance(returnType) like org.jboss.resteasy.client.core.BaseClientResponse.getEntity(Class<T2>, Type, Annotation[]) does.
Then when you try to read from the InputStream it throws an "stream closed" exception.