Details
-
Bug
-
Resolution: Done
-
Major
-
5.10.6.Final
-
Clean up JAX-RS message entity input streams
Description
The LRA implementation creates Response objects but does not always consume any associated entity input stream which can result in memory leaks according to the javadoc:
The javax.ws.rs.core.Response#close() method should be invoked on all instances that contain an un-consumed entity input stream to ensure the resources associated with the instance are properly cleaned-up and prevent potential memory leaks.
This JIRA is to wrap creation of Response objects within a `try with resources` block.