Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4150792
Votes 0
Synopsis HttpURLConnection should not throw a FileNotFoundException on HTTP 401 response
Category java:classes_net
Reported Against 1.1.6
Release Fixed
State 11-Closed, duplicate of 4160499, bug
Priority: 2-High
Related Bugs 4160499
Submit Date 19-JUN-1998
Description
getInputStream() method of sun.net.www.protocol.http.HttpURLConnection throws
a FileNotFoundException if the webserver returns a 401 (> 400) response (if
the requested URL did not end with an .html extension). 
This causes a problem for .asp files which are protected. 

test case: Try logging into www.fool.com site.
Work Around
N/A
Evaluation
.
Comments
  
  Include a link with my name & email   

Submitted On 03-FEB-2000
mark.duske
I suffer from the same problem, please notify me of some workaround to this
bug.


Submitted On 24-FEB-2000
dwfa
Actually as of 1.2.2.001 for MS-Windows this behaviour 
occurs when the there is not .html or /.  I too would like 
to know how when this will be fixed.


Submitted On 12-JUL-2000
euxx
still exists for JDK 1.3


Submitted On 01-JUN-2005
schanbmo
Still have the same problem in JDK 1.4.



PLEASE NOTE: JDK6 is formerly known as Project Mustang