[GLASSFISH-19431] com.sun.appserv.iiop.endpoints does not support IPV6 Created: 12/Dec/12  Updated: 21/Sep/15

Status: Open
Project: glassfish
Component/s: orb
Affects Version/s: 4.0_b01
Fix Version/s: 4.1.1

Type: Bug Priority: Major
Reporter: lzg5039 Assignee: Harshad Vilekar
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Attachments: Text File RoundRobinPolicy.patch    


because the IPV6 address contains ":",so when the value of "com.sun.appserv.iiop.endpoints" contains IPV6 address,the following code which is marked ★ can not get the correct ip and port

Directory: orb\orb-iiop\src\main\java\
Package: org.glassfish.enterprise.iiop.impl

private ClusterInstanceInfo makeClusterInstanceInfo(String str, 
    int weight) {

    String[] host_port = str.split(":");  ★
    String server_identifier = ""; //for bootstrapping, can be ""
    String type = CLEAR_TEXT; //will be clear_text for bootstrapping
    SocketInfo socketInfo = new SocketInfo(
        type, host_port[0], Integer.parseInt( host_port[1]) );
    List<SocketInfo> sil = new ArrayList<SocketInfo>(1) ;
    sil.add( socketInfo ) ;

    return new ClusterInstanceInfo(server_identifier, weight, sil);

Generated at Fri Nov 27 23:12:02 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.