[jira] [Assigned] (FOP-3083) Referenced JPG image is not closed when TransformerException is thrown by transform()

2022-07-22 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3083:
--

Assignee: (was: Simon Steiner)

> Referenced JPG image is not closed when TransformerException is thrown by 
> transform()
> -
>
> Key: FOP-3083
> URL: https://issues.apache.org/jira/browse/FOP-3083
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.7
> Environment: jdk-17.0.3.7-hotspot (Microsoft)
>Reporter: Paul Sharp
>Priority: Major
> Attachments: Code snippet.txt, example.jpg, xsl-fo.xml
>
>
> We are trying to implement a workflow where the FO file and the images 
> referenced within, are stored in a temporary directory which we can clear 
> down once complete.
> When we disable strict FO validation, the approach works fine.
> However, when strict FO validation is enabled, a TransformerException is 
> thrown (as expected for a poor FO). But it appears to keep the image file 
> open until the JVM is shut down.
> I have checked through previous Jira entries and tried many other suggestions 
> (clearing the image cache etc.) but we cannot seem to get the file closed.
> The attached example code snippet illustrates the behaviour. We would expect 
> the example.jpg file to be deleted after processing.
> I hope I've provided enough here. Let me know if more detail is required.



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


[jira] [Assigned] (FOP-3083) Referenced JPG image is not closed when TransformerException is thrown by transform()

2022-07-22 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3083:
--

Assignee: Simon Steiner

> Referenced JPG image is not closed when TransformerException is thrown by 
> transform()
> -
>
> Key: FOP-3083
> URL: https://issues.apache.org/jira/browse/FOP-3083
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.7
> Environment: jdk-17.0.3.7-hotspot (Microsoft)
>Reporter: Paul Sharp
>Assignee: Simon Steiner
>Priority: Major
> Attachments: Code snippet.txt, example.jpg, xsl-fo.xml
>
>
> We are trying to implement a workflow where the FO file and the images 
> referenced within, are stored in a temporary directory which we can clear 
> down once complete.
> When we disable strict FO validation, the approach works fine.
> However, when strict FO validation is enabled, a TransformerException is 
> thrown (as expected for a poor FO). But it appears to keep the image file 
> open until the JVM is shut down.
> I have checked through previous Jira entries and tried many other suggestions 
> (clearing the image cache etc.) but we cannot seem to get the file closed.
> The attached example code snippet illustrates the behaviour. We would expect 
> the example.jpg file to be deleted after processing.
> I hope I've provided enough here. Let me know if more detail is required.



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