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

Chris Bowditch edited comment on FOP-2497 at 12/23/20, 10:34 AM:
-----------------------------------------------------------------

Please attach your suggested change as a patch file, not a link to github. 
Also, please describe what inputs you gave to FOP to observe the issue, i.e. 
the XML and XSLT source


was (Author: cbowditch):
Please attach your suggested change as a patch file, not a link to github. 
Also, please describe what inputs you gave to FOP to observe the issue

> [PATCH] XML processor attempts to resolve URIs from internet when loading 
> XSLT source
> -------------------------------------------------------------------------------------
>
>                 Key: FOP-2497
>                 URL: https://issues.apache.org/jira/browse/FOP-2497
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 1.1, 2.0
>            Reporter: Dan Allen
>            Priority: Minor
>
> The XSL processor attempts to reach out to the internet to resolve URIs in 
> XSLT source files. This is not the expected behavior. This happens because 
> the URIResolver is not registered on the TransformerFactory when it creates a 
> Transformer instance for a given XSLT source.
> The fix assigns the URIResolver to the TransformerFactory (which then gets 
> assigned to any Transformer created from that factory) rather than on the 
> Transformer. This change allows the processor to resolve URIs in the XSLT 
> source when the source is being loaded.
> This patch also registers the InputHandler as an ErrorListener for the 
> TransformerFactory so that any errors that occur while loading the XSLT are 
> logged consistently.
> The patch is available at the following URL: 
> https://github.com/apache/fop/pull/1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to