-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b25
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8025092 | 6u71 | Nakul Natu | P2 | Closed | Fixed | b01 |
When a CacheHandler is provided and the URL is found in the cache after a redirect, HttpURLConnection will return the wrong InputStream, i.e. the one from the redirect instead of the one from the Cache. Which will trigger an IOException since the InputStream from the redirect has been closed.
This is triggered on the second call to URLConnection.getInputStream().
One other way this happens is when checking headers first, like getResponseCode() then calling getInputStream().
This is triggered on the second call to URLConnection.getInputStream().
One other way this happens is when checking headers first, like getResponseCode() then calling getInputStream().
- backported by
-
JDK-8025092 HttpURLConnection returns the wrong InputStream
-
- Closed
-
- duplicates
-
JDK-8010820 Cached applet that was loaded using redirect doesn't work
-
- Closed
-
- relates to
-
JDK-8010820 Cached applet that was loaded using redirect doesn't work
-
- Closed
-