FULL PRODUCT VERSION :
1.6.0_02-b05
ADDITIONAL OS VERSION INFORMATION :
reproduced with different windows systems
A DESCRIPTION OF THE PROBLEM :
Connecting Problems if char '_' in hostname
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.net.MalformedURLException: invalid authority: //akr_sharepoint:8000/ssssss
at java.rmi.Naming.intParseURL(Unknown Source)
at java.rmi.Naming.parseURL(Unknown Source)
at java.rmi.Naming.lookup("//abc_sharepoint:8000/ssssss")
It's easy to reproduce "java.net.URI.getHost()" should be the Problem.
---------- BEGIN SOURCE ----------
import java.rmi.Naming;
public class Test {
public Test(){
callLookup("host_name");
callLookup("hostname");
}
private void callLookup(String hostName){
System.out.println(hostName + " leads to");
try{
Naming.lookup("//" + hostName + ":6666/xxxxx");
}catch(Throwable er){
er.printStackTrace();
}
}
static public void main(String args[]) {
new Test();
}
}
---------- END SOURCE ----------
REPRODUCIBILITY :
This bug can be reproduced always.
Release Regression From : 5.0
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
1.6.0_02-b05
ADDITIONAL OS VERSION INFORMATION :
reproduced with different windows systems
A DESCRIPTION OF THE PROBLEM :
Connecting Problems if char '_' in hostname
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.net.MalformedURLException: invalid authority: //akr_sharepoint:8000/ssssss
at java.rmi.Naming.intParseURL(Unknown Source)
at java.rmi.Naming.parseURL(Unknown Source)
at java.rmi.Naming.lookup("//abc_sharepoint:8000/ssssss")
It's easy to reproduce "java.net.URI.getHost()" should be the Problem.
---------- BEGIN SOURCE ----------
import java.rmi.Naming;
public class Test {
public Test(){
callLookup("host_name");
callLookup("hostname");
}
private void callLookup(String hostName){
System.out.println(hostName + " leads to");
try{
Naming.lookup("//" + hostName + ":6666/xxxxx");
}catch(Throwable er){
er.printStackTrace();
}
}
static public void main(String args[]) {
new Test();
}
}
---------- END SOURCE ----------
REPRODUCIBILITY :
This bug can be reproduced always.
Release Regression From : 5.0
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
- relates to
-
JDK-5083594 Different Behaviors parsing hostname with '_' between in 1.3.1 and 1.4.X/1.5
- Resolved
-
JDK-6394131 Rollback URI class to Tiger version
- Resolved