Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1455

InputStream not closed when bridge is scanning jars for META-INF/faces-config.xml files

    Details

      Description

      The constructor for BridgeConfigImpl scans the classpath for jar artifacts that contain META-INF/faces-config.xml files:

      while (facesConfigURLs.hasMoreElements()) {
          URL facesConfigURL = facesConfigURLs.nextElement();
      
          logger.debug("Pre-processing faces-config: [{0}]", facesConfigURL);
          facesConfigPreHandler.setURL(facesConfigURL);
      
          InputStream inputStream = facesConfigURL.openStream();
          ...
      

      But as shown in the code above, the inputStream is never closed.

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-2.1.1-ga2
                liferay-faces-3.0.1-legacy-ga2
                liferay-faces-3.0.1-ga2
                liferay-faces-3.1.1-ga2
                liferay-faces-3.2.4-ga5