Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Preflight
    • Labels:
      None

      Description

      PreflightParser has this:

          public PreflightParser(DataSource dataSource) throws IOException
          {
              // TODO move file handling outside of the parser
              super(new RandomAccessBufferedFileInputStream(dataSource.getInputStream()));
              this.setLenient(false);
              this.originalDocument = dataSource;
          }
      

      The TODO message looks like a design issue, but it is much worse: the RandomAccessBufferedFileInputStream is never closed, which results in the temp file not being deleted. The file parameter constructor has the same problem, i.e. that the RandomAccessBufferedFileInputStream object is not closed (no temp file there).

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: