You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Li Jing Qin (JIRA)" <ji...@apache.org> on 2010/07/07 09:45:49 UTC
[jira] Created: (HARMONY-6571) [classlib][jndi]Bad URL syntax when
we ask a reverse DNS
[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.
[jira] Commented: (HARMONY-6571) [classlib][jndi]Bad URL syntax
when we ask a reverse DNS
Posted by "Li Jing Qin (JIRA)" <ji...@apache.org>.
[ 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.