You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Kenneth Preudhomme (JIRA)" <ji...@apache.org> on 2019/01/24 16:20:00 UTC

[jira] [Created] (IVY-1601) PomReader cannot read long single lined pom files

Kenneth Preudhomme created IVY-1601:
---------------------------------------

             Summary: PomReader cannot read long single lined pom files
                 Key: IVY-1601
                 URL: https://issues.apache.org/jira/browse/IVY-1601
             Project: Ivy
          Issue Type: Bug
    Affects Versions: 2.4.0
            Reporter: Kenneth Preudhomme


While attempting to resolve a dependency that had a pom file that did not contain newlines between XML elements (i.e. a single lined pom file), IVY will throw an IOException when attempting to reset the input stream.

Specifically, [PomReader.java#L802|https://github.com/apache/ant-ivy/blob/master/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java#L802] will read in the entire input stream and invalidate the previously set mark. when [#L817|https://github.com/apache/ant-ivy/blob/70248634fcdc141ceae8b5a5abcb266ce7230378/src/java/org/apache/ivy/plugins/parser/m2/PomReader.java#L817] is reached, the aforementioned exception will be thrown. 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)