james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norman Maurer (JIRA)" <server-...@james.apache.org>
Subject [jira] Updated: (JAMES-302) Functionality of org.apache.james.dnsserver.DNSServer.getByName(String) is not symetric to java.net.InetAddress.getByName(String)
Date Wed, 27 Oct 2010 16:26:20 GMT

     [ https://issues.apache.org/jira/browse/JAMES-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Norman Maurer updated JAMES-302:
--------------------------------

    Affects Version/s:     (was: 3.0)
                       2.2.0
                       2.3.0
                       2.3.1
                       2.3.2
        Fix Version/s:     (was: 3.0)
                       3.0-M2

Let us fix this before 3.0-M2

> Functionality of org.apache.james.dnsserver.DNSServer.getByName(String) is not symetric
to java.net.InetAddress.getByName(String)
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-302
>                 URL: https://issues.apache.org/jira/browse/JAMES-302
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: DNSServer
>    Affects Versions: 2.2.0, 2.3.0, 2.3.1, 2.3.2
>         Environment: Tested on WIN2000, JDK 1.4.1_01-b01
>            Reporter: Steve Brewin
>            Assignee: Norman Maurer
>            Priority: Minor
>             Fix For: 3.0-M2
>
>
> org.apache.james.dnsserver.DNSServer.getByName(String) does not always return the same
result as java.net.InetAddress.getByName(address). Sometimes an exception is thrown when the
standard implementation does not.
> When passed a fully qualified domain name the results are the same. When passed a hostname
or the special name 'localhost', a java.net.UnknownHostException is thrown by org.apache.james.dnsserver.DNSServer
while java.net.InetAddress resolves the addresses correctly.
> This is a critical issue as in v2.2.0 java.net.InetAddress.getByName() has pretty thoroughly
been replaced by org.apache.james.dnsserver.DNSServer.getByName(), but in the noted circumstances
it doesn't perform the same. Dependent code breaks.
> Here are the contrasting examples...
> // FAILS
> String address = "localhost";
> java.net.InetAddress inetAddress = org.apache.james.dnsserver.DNSServer.getByName(address);
> return inetAddress;
> // FAILS
> String address = "hostname";
> java.net.InetAddress inetAddress = org.apache.james.dnsserver.DNSServer.getByName(address);
> return inetAddress;
> // SUCCEEDS
> String address = "localhost";
> java.net.InetAddress inetAddress = java.net.InetAddress.getByName(address);
> return inetAddress;
> // SUCCEEDS
> String address = "hostname";
> java.net.InetAddress inetAddress = java.net.InetAddress.getByName(address);
> return inetAddress;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message