United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4975882 : Reverse DNS calls in SocketPermission undesirable

Details
Type:
Bug
Submit Date:
2004-01-09
Status:
Open
Updated Date:
2013-09-02
Project Name:
JDK
Resolved Date:
Component:
core-libs
OS:
generic,linux
Sub-Component:
java.net
CPU:
generic,x86
Priority:
P4
Resolution:
Unresolved
Affected Versions:
6
Targeted Versions:
tbd_major

Related Reports
Duplicate:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
a customer has ask this question, he has a network setup in which
DNS name to address translation is ok but address to name translation
is not allowed.
in this setup he has used an applet to connect to a server and run into
a huge delay because of this code in SocketPermission.java, method
impliesIgnoreMask:

          // XXX: if all else fails, compare hostnames?
          // Do we really want this?
          if (this.cname == null) {
              this.getCanonName();
          }

          if (that.cname == null) {
->               that.getCanonName();
          }

          return (this.cname.equalsIgnoreCase(that.cname));

this line doing reverse DNS hangs for long time. since the comment says
"do we really want this", it makes me think can this be considered to
removed? we have already compared IP address above this. 

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-29
EVALUATION

Revisit for mustang

###@###.### 2004-01-12
                                     
2004-01-12



Hardware and Software, Engineered to Work Together