You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@iseran.com> on 2001/04/03 07:56:48 UTC

Bug in Get.java (was Re: odd code in Get.java)

----- Original Message -----
From: "Steve Loughran" <st...@iseran.com>
To: <an...@jakarta.apache.org>
Sent: Monday, March 26, 2001 7:24 PM
Subject: Re: odd code in Get.java
>
> However the final place I found it was bug ID 4160499
> (http://developer.java.sun.com/developer/bugParade/bugs/4160499.html),
which
> covers how the HttpUrlConnection class will generate a FileNotFound
> Exception when a 4XX error comes in -the second attempt to get the input
> stream will succeed.

So I've been tacking in more robustness into my refactoring of get,java,
along with getting the setproxy task to work in java1.1 , and yes, it is
easy to raise a file not found exception once you know what to do.

More to the point, you can do it the shipping get.java with the task

  <target name="test7">
    <get src="http://www.apache.org/missingfilewithoddextension.avz"
     dest="get.tmp"/>
  </target>

The fault isn't in costin's code; it's in the stuff I added to do timestamp
based loads -so the bug has been present for months and months. Oops :-) At
least nobody has noticed yet.

I'm going to fix it in my reworked implementation -expect it soon- after
which the change can go back into Get.java, although I'm doing the legacy
support for this task onto the new codebase.

Should I log this bug on bugzilla?

-steve


Re: Bug in Get.java (was Re: odd code in Get.java)

Posted by Stefan Bodewig <bo...@apache.org>.
Steve Loughran <st...@iseran.com> wrote:

> Should I log this bug on bugzilla?

If you want to. You could wait until your patch has been sent and
applied and record it as fixed at the same time 8-)

Stefan