zowe / api-layer

The API Mediation Layer provides a single point of access for mainframe service REST APIs.
Eclipse Public License 2.0
54 stars 63 forks source link

Deprecated http client method used with possible resource leak #3711

Closed richard-salac closed 3 days ago

richard-salac commented 2 weeks ago

Describe the bug API ML uses ClosableHttpClient.execute(...) method in multiple places. The method returns ClosableHttpResponse, which requires closing to prevent resource leak. The method is also deprecated (see javadoc above) due to this reason.

e.g.

Suggest to replace the deprecated method with the recommended one from javadoc.

Details

https://github.com/zowe/api-layer/wiki/Issue-management

balhar-jakub commented 2 weeks ago

Does this issue exist also in Zowe 3.x or only in the 2.x stream?

richard-salac commented 2 weeks ago

It is valid for both.