[jira] [Commented] (FOP-2903) Do not delete files on invocation with syntax errors in command line

2023-07-27 Thread Dave Roxburgh (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17747836#comment-17747836
 ] 

Dave Roxburgh commented on FOP-2903:


Thanks for reporting, [~mattiwei] 

[^p5.patch] resolves.

> 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)


[jira] [Commented] (FOP-2903) Do not delete files on invocation with syntax errors in command line

2020-01-15 Thread Chris Bowditch (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17015878#comment-17015878
 ] 

Chris Bowditch commented on FOP-2903:
-

Please attach sample files to replicate the issue or it will be closed as 
unable to replicate

> 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
>
> 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.3.4#803005)