Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7595

Swagger2Feature - inputstream of stream swagger.properties after loading not closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2, 3.1.15
    • JAX-RS
    • None
    • Unknown

    Description

      If we put a swagger.properties into our classpath it's loaded by the Swagger2Feature.getSwaggerProperties()

       protected Properties getSwaggerProperties(Bus bus) {
              InputStream is = ResourceUtils.getClasspathResourceStream(propertiesLocation, 
                                                       AbstractSwaggerFeature.class, 
                                                       bus);
              Properties props = null;
              if (is != null) {
                  props = new Properties();
                  try {
                      props.load(is);
                  } catch (IOException ex) {
                      props = null;
                  }
              }
              return props;
          }
      

      But the inputstream is not closed in this method, thats preventing us from using a hotdeployment in our jboss because the stream on swagger.properties is still open.

      Attachments

        Activity

          People

            deki Dennis Kieselhorst
            ollipaq Olivier Paquet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: