harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jing Qin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6571) [classlib][jndi]Bad URL syntax when we ask a reverse DNS
Date Wed, 07 Jul 2010 07:59:49 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885875#action_12885875
] 

Li Jing Qin commented on HARMONY-6571:
--------------------------------------

The statck trace lists below:

javax.naming.ConfigurationException: Unable to parse DNS URL
dns:///1.0.0.127.in-addr.arpa. Bad URL syntax
    at
org.apache.harmony.jndi.provider.dns.DNSContext.parseProviderUrlProp(DNSContext.java:295)
    at
org.apache.harmony.jndi.provider.dns.DNSContext.addToEnvironment(DNSContext.java:1820)
    at
org.apache.harmony.jndi.provider.dns.dnsURLContext.process(dnsURLContext.java:168)
    at
org.apache.harmony.jndi.provider.dns.dnsURLContext.getAttributes(dnsURLContext.java:69)
    at
javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:151)
    at DirContextTest.main(DirContextTest.java:15)

For the api spec, *DNS Pseudo-URL* was expected when Context.PROVIDER_URL
was the key. It seems the behavior of parseProviderUrlProp is right.

Shall we need another provider for the reverse DNS query?





-- 
Yours sincerely,
Charles Lee


> [classlib][jndi]Bad URL syntax when we ask a reverse DNS
> --------------------------------------------------------
>
>                 Key: HARMONY-6571
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6571
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Li Jing Qin
>
> Try this testcase:
> DirContext ictx = new InitialDirContext();                                          
                                                                                         
                                                          
> Attributes attribute;                                                               
                                                                                         
                                                          
> try {
> attribute = ictx.getAttributes("dns:///1.0.0.127.in-addr.arpa", new String[] { "PTR"
});                                                                                      
                                                                                    
> } finally {ictx.close();}
> System.out.println(attribute.get("PTR").get().toString());

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


Mime
View raw message