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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.3
    • 2.9
    • 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

        1. p5.patch
          9 kB
          Dave Roxburgh

        Activity

          People

            ssteiner Simon Steiner
            mattiwei Mathias Weiersmueller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: