JDK-5055581 : (spec) Unspecified behavior of SSLSocketFactory.createSocket() and SSLSocket constructors
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 5.0,6,7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-06-01
  • Updated: 2017-05-16
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b12Fixed OpenJDK6Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Name: bkR10012			Date: 06/01/2004


The description of the SSLSocketFactory.createSocket(Socket s,
                                                     String host,
                                                     int port,
                                                     boolean autoClose)
says:
"Throws:
    IOException - if an I/O error occurs when creating the socket
    UnknownHostException - if the host is not known"

But the implementation 
- does not throw UnknownHostException if the host is not known
 (e.g. host="incorrect host name") or null
- does not throw IOException if the port is negative
- throws unspecified NullPointerException if parameter s is null

======================================================================

Comments
EVALUATION The java.net.Socket and java.net.ServerSocket have changed its spec by adding more items, javax.net should be synchronized with those changes. also see 5053890.
23-11-2006

EVALUATION depend on the fix of 6285145, target to next release
01-12-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
02-09-2004

EVALUATION Address. ###@###.### 2004-06-01 Also see 5065738 for other possible symptoms. ###@###.### 2004-06-21
01-06-2004