Bug 34872

Summary: Using get task with authentication causes ArrayIndexOutOfBoundsException
Product: Ant Reporter: Erik Fiegel <erik_fiegel>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 1.6.3   
Target Milestone: ---   
Hardware: Sun   
OS: Solaris   

Description Erik Fiegel 2005-05-11 21:01:25 UTC
Using the get task with http authentication causes ArrayIndexOutOfBoundsException.

Running the following build file results in the error :
java.lang.ArrayIndexOutOfBoundsException: 24

<project name="ant bug" default="bug">

    <property name="tc.manager.user"     value="eefiegel" />
    <property name="tc.manager.password" value="eefiegel" />
    <property name="tc.manager.url"      value="http://eek:8096/manager/html" />

    <property name="file.out" value="${basedir}/list.out" />

    <target name="bug" 
     description="demonstrate ant 1.6.3 bug with the get task">
        <get username="${tc.manager.user}"
             password="${tc.manager.password}"
                  src="${tc.manager.url}/list"
                 dest="${file.out}" />
    </target>
</project>
Comment 1 Matt Benson 2005-05-11 21:07:45 UTC

*** This bug has been marked as a duplicate of 34734 ***