Proposed fix for 6660405.
Christopher Hegarty - Sun Microsystems Ireland
Christopher.Hegarty at Sun.COM
Wed Mar 5 08:01:41 PST 2008
The change looks good. I approve this change.
-Chris
Jean-Christophe Collet wrote:
> Here is my proposed fix for CR 6660405.
> The issue is that after a redirect, and if there is a cache hit (i.e.
> the URL is found in the cache) HttpURLConnection will return the wrong
> InputStream. Details are in the evaluation section of the CR.
> My proposed fix is to set inputStream back to null in
> sun.net.www.protocol.http.HttpURLConnection.disconnectInternal().
> I've also included a regression test that reproduces the bug.
> See patch attached.
>
More information about the net-dev
mailing list