[ 
https://issues.apache.org/jira/browse/FOP-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner resolved FOP-2903.
--------------------------------
    Fix Version/s: main
       Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/a731bf3ab28f7f7760421e5f9b90916bc3cf627c

> [PATCH] Do not delete files on invocation with syntax errors in command line
> ----------------------------------------------------------------------------
>
>                 Key: FOP-2903
>                 URL: https://issues.apache.org/jira/browse/FOP-2903
>             Project: FOP
>          Issue Type: Bug
>          Components: unqualified
>    Affects Versions: 2.3
>         Environment: Linux RHEL 7, FOP installed from source
>            Reporter: Mathias Weiersmueller
>            Assignee: Simon Steiner
>            Priority: Trivial
>             Fix For: main
>
>         Attachments: p5.patch
>
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to