Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-6331

File stream not closed after fetching binary in core storage

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4.1
    • Component/s: Core VCS

      Description

      Inputstream for a source file gets open, but never closed. Below is the code fragment:

      package org.nuxeo.ecm.core.storage.sql.coremodel;
      ......
      public class SQLContentProperty extends SQLComplexProperty {
      ......

      @Override
      public void setValue(Object value) throws DocumentException {
      .......
      InputStream stream;
      try

      { stream = blob.getStream(); }

      catch (IOException e)

      { throw new DocumentException(e); }

      .......
      }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: