You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Dave Roxburgh (Jira)" <ji...@apache.org> on 2023/07/27 08:22:00 UTC
[jira] [Updated] (FOP-2903) Do not delete files on invocation with syntax errors in command line
[ https://issues.apache.org/jira/browse/FOP-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Roxburgh updated FOP-2903:
-------------------------------
Attachment: p5.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
> Priority: Trivial
> 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)