tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

OC - ResultSets Returned from Alfresco Search Queries Are Not Always Closed #2327

Closed newmanju closed 4 years ago

newmanju commented 4 years ago

Throughout 2.alfrescoEmb there are occurrences of ResultSet objects, which are returned from search service queries, that are not being closed. We need to ensure these are being closed to avoid potential disk space and memory leak issues. To properly close these, wrap the search query code in a try block and close the ResultSet object in a finally block.

newmanju commented 4 years ago

This issue has been resolved in OC SVN commit 26499:

Parts of OC were found leaving a ResultSet object open after executing an Alfresco search query. This commit adds in several try...finally blocks to ensure that ResultSets are explicitly closed after use.

CR: dvora, aking