Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2903

Do not delete files on invocation with syntax errors in command line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 2.3
    • None
    • unqualified
    • None
    • Linux RHEL 7, FOP installed from source

    Description

      When invoking FOP from the command line with an error, fop deletes files. I expect FOP to touch nothing upon an error.

      Example:

      fop -xml ./my.xml my.xsl -pdf result.pdf

      above command throws as expected an error because the -xsl flag is missing in front of the XSL file name:

      Jan 15, 2020 8:56:03 AM org.apache.fop.cli.Main startFOP
      SEVERE: Exception
      org.apache.fop.apps.FOPException: you can only set one output method

      But the file my.xsl is gone (deleted) afterwards. The file should not get deleted upon an error in the command line.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mattiwei Mathias Weiersmueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: