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

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

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mattiwei Mathias Weiersmueller

            Dates

              Created:
              Updated:

              Slack

                Issue deployment