Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 20650 invoked from network); 29 Feb 2008 11:59:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 11:59:49 -0000 Received: (qmail 77285 invoked by uid 500); 29 Feb 2008 11:59:44 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 77253 invoked by uid 500); 29 Feb 2008 11:59:44 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 77241 invoked by uid 99); 29 Feb 2008 11:59:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 03:59:44 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 11:59:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 228B3234C043 for ; Fri, 29 Feb 2008 03:58:51 -0800 (PST) Message-ID: <394086588.1204286331134.JavaMail.jira@brutus> Date: Fri, 29 Feb 2008 03:58:51 -0800 (PST) From: "Xavier Hanin (JIRA)" To: notifications@ant.apache.org Subject: [jira] Assigned: (IVY-737) [PATCH] XML entity parsing fix In-Reply-To: <21267325.1203159548089.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin reassigned IVY-737: -------------------------------- Assignee: Xavier Hanin > [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 > Assignee: Xavier Hanin > Fix For: 2.0 > > 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 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.