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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated: