ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 44499] New: ManifestClassPath throws when a relative path would traverse the file system root
Date Wed, 27 Feb 2008 14:43:11 GMT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44499

           Summary: ManifestClassPath throws when a relative path would
                    traverse the file system root
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: wolf@nlm.nih.gov


ManifestClassPath throws when a relative path would traverse the file system
root.

The relative path to /aux/b.jar from /usr/local should be ../../aux/b.jar, but
ManifestClassPath does not tolerate it.  The exception thrown seems to depend
on maxParentLevels.  Here are two illustrations.

This build file produces a java.lang.NullPointerException:

<project name="crash" basedir="/usr/local">
<manifestclasspath jarfile="e.jar" maxParentLevels="99" property="cp">
   <classpath>
      <pathelement location="/aux/b.jar"/>
   </classpath>
</manifestclasspath>
</project>

This build file produces a java.lang.ArrayIndexOutOfBoundsException:

<project name="crash" basedir="/usr/local">
<manifestclasspath jarfile="e.jar" maxParentLevels="2" property="cp">
   <classpath>
      <pathelement location="/aux/b.jar"/>
   </classpath>
</manifestclasspath>
</project>


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message