Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8550

[Broker-J] HP Fortify: Unreleased streams

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • qpid-java-broker-8.0.5
    • qpid-java-broker-9.0.0
    • Broker-J
    • None

    Description

      HP Fortify complains about several places where streams potentially do not get released properly:

      broker-core/src/main/java/org/apache/qpid/server/store/JsonFileConfigStore.java
      The function load() in JsonFileConfigStore.java sometimes fails to release a system resource allocated by FileReader() on line 162.

      broker-core/src/main/java/org/org/apache/qpid/server/virtualhostnode/AbstractVirtualHostNode.java
      The function getInitialRecords() in AbstractVirtualHostNode.java sometimes fails to release a system resource allocated by ,[object Object], on line 435.

      broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet.rest/RestServlet.java
      The function parse() in RestServlet.java sometimes fails to release a system resource allocated by getInputStream() on line 440.

      tools/src/main/java/org/apache/qpid/tools/RestStressTestClient.java
      The function put() in RestStressTestClient.java sometimes fails to release a system resource allocated by getOutputStream() on line 318.

      perftests/src/main/java/org/apache/qpid/disttest/controller/config/ConfigReader.java
      The function getConfigFromFile() in ConfigReader.java sometimes fails to release a system resource allocated by getConfigReader() on line 40.

      perftests/src/main/java/org/apache/qpid/disttest/controller/config/JavaScriptConfigEvaluator.java
      The function evaluateJavaScript() in JavaScriptConfigEvaluator.java sometimes fails to release a system resource allocated by InputStreamReader() on line 70.

      The function evaluateJavaScript() in JavaScriptConfigEvaluator.java sometimes fails to release a system resource allocated by InputStreamReader() on line 71.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel.kirilyuk Daniil Kirilyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: