Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1683

ExcelParse can re-write files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.0.Final
    • 7.0.0.Final
    • decision tables
    • None
    • 2017 Week 30-31
    • NEW
    • NEW

      ExcelParser.open(File) uses the single argument WorkbookFactory.create() call, which opens the file in read-write mode, so when parseWorkbook() calls close on it, it will save the workbook to disk.

      Usually the resulting file is the same, however it may be binary-different but equivalent(causing git conflicts). Being read-only does not cause an error since the exceptions are swallowed silently.

      It should use the three argument form of WorkbookFactory.create() and pass the read-only flag

            mfusco@redhat.com Mario Fusco
            rhn-support-jlivings James Livingston (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: