Hi, after we implemented an auto-closing of InputStream in Response.readEntity we started seeing random failures. For example, CXF tests where we had Response.readEntity(StreamSource.class) was passing OK on two branches but was failing on the 3rd one. One DOM-based tests started failing as well.
Took a bit of time to figure out it was to do with closing the stream too early in those cases.
Proposal: either completely disallow the auto-closing of InputStream or make it conditional (example, based on some property, etc)