[
https://issues.apache.org/jira/browse/IVY-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Patrick Woodworth updated IVY-737:
----------------------------------
Attachment: ivy-entities-fix-r2.patch
This patch supersedes the original ivy-entities-fix.patch file by enabling the
code to continue using URLHandlerRegistry but simply appending the extra
context info before invoking the parser, whereas the original patch bypassed
URLHandlerRegistry for some cases. The patch has also been rebased against
trunk revision 629224.
> [PATCH] XML entity parsing fix
> ------------------------------
>
> Key: IVY-737
> URL: https://issues.apache.org/jira/browse/IVY-737
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-beta-1
> Reporter: Patrick Woodworth
> Attachments: ivy-entities-fix-r2.patch, xml-entities-test.patch
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> Ivy's parsing of XML files does not properly resolve XML SYSTEM entities.
> The problem appears systemic and widespread, with the underlying cause being
> the general pattern of always converting to-be-parsed resources (i.e. URL(s),
> File(s), etc.) to InputStream(s) before handing them off to the
> SAXParser#parse(...) method. This pattern strips all contextual information
> about the source and prevents the parser from properly resolving relative
> paths to entity sources.
> While I believe the problem is widespread and beyond the scope of a first
> time submitter, I have managed to create a minimal patch that fixes the issue
> where it would most often affect users. Specifically this patch fixes entity
> resolution for the parsing of settings.xml and ivy.xml files that would be
> found in a source tree as opposed to ivy.xml files that would be found in
> repositories. Another way of looking at it is that my patch fixes entity
> parsing for any file that would be parsed by the <ivy:buildlist/> task.
> I have also provided a second patch which provides a test-case for this
> issue, however for a quick example of what I'm talking about, one can simply
> look here: http://ant.apache.org/faq.html#xml-entity-include
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.