Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-4611

Close all the stream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4.5, 3.5.3, 3.7
    • 3.5.1
    • Général
    • None

      Some of the stream should be closed, for example:

      try{
      […]
      ObjectOutput output = new ObjectOutputStream( buffer );
      try{
      output.writeObject(ourObject);
      }
      finally{
      output.close();
      }
      } catch(IOException ex){
      […]
      }
      

      This list of files:

      Repository/main/workspacerepository/
      src/org/ametys/workspaces/repository/jcr/SetPropertyAction.java:99
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/workspace/BinaryMetadataReader.java:125
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/jcr/JCRCompositeMetadata.java:196
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/jcr/JCRCompositeMetadata.java:202
      Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/jcr/JCRCompositeMetadata.java:253
      Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:119
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:189
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:410
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:430
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:450
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:476
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:509
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataRepositoryTestCase.java:558
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/metadata/MetadataSaxer.java:185
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/workspace/SetMetadataAction.java:217
      Plugin Repository/main/pluginrepository/
      src/org/ametys/plugins/repository/workspace/SetMetadataAction.java:258
      Plugin Explorer/main/pluginexplorer/
      src/org/ametys/plugins/explorer/resources/actions/AddOrUpdateResourceAction.java:154
      Plugin Explorer/main/pluginexplorer/
      src/org/ametys/plugins/explorer/resources/readers/AmetysResourceReader.java:176
      Plugin Explorer/main/pluginexplorer/
      src/org/ametys/plugins/explorer/dublincore/DublinCoreMetadataProvider.java:146
      CMS/main/plugin-cms/src/org/ametys/cms/content/consistency/ContentConsistencyEngine.java:290
      CMS/main/plugin-cms/src/org/ametys/cms/content/consistency/ContentConsistencyEngine.java:298
      CMS/main/plugin-cms/src/org/ametys/cms/contenttype/ContentTypeExtensionPoint.java:83
      CMS/main/plugin-cms/src/org/ametys/cms/contenttype/DefaultContentType.java:243
      CMS/main/workspace-cms/src/org/ametys/cms/workspace/ribbon/RibbonConfigurationManager.java:172
      CMS/main/workspace-cms/src/org/ametys/cms/workspace/uitool/UIToolsConfigurationManager.java:79
      WEB/main/plugin-web/src/org/ametys/web/content/consistency/ContentConsistencyEngine.java:180
      WEB/main/plugin-web/src/org/ametys/web/content/consistency/ContentConsistencyEngine.java:188
      WEB/main/plugin-web/src/org/ametys/web/sitemap/DefaultSitemapDecoratorsHandler.java:566
      WEB/main/plugin-web/src/org/ametys/web/skin/actions/ImportSkinAction.java:172
      WEB/main/plugin-web/src/org/ametys/web/generation/SiteGenerator.java:553
      WEB/main/plugin-web/src/org/ametys/web/generation/SiteGenerator.java:574
      WEB/main/plugin-web/src/org/ametys/web/skin/Skin.java:220
      WEB/main/plugin-web/src/org/ametys/web/skin/generators/TempSkinConfigGenerator.java:209
      WEB/main/plugin-web/src/org/ametys/web/skin/generators/TempSkinConfigGenerator.java:300
      WEB/main/plugin-web/src/org/ametys/web/editor/UploadedLinksHTMLEditionHandler.java:166
      WEB/main/plugin-web/src/org/ametys/web/skin/actions/UploadSkinAction.java:
      

            laurence Laurence Aumeunier
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: