You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2008/09/12 09:53:44 UTC

[jira] Commented: (HARMONY-5978) [classlib][jndi] - javax.naming.ldap.LdapName.endsWith and startsWith are not threadsafe

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

Tony Wu commented on HARMONY-5978:
----------------------------------

Hi Regis,

patch applied at r694634, thanks for you contribution , please verify

> [classlib][jndi] - javax.naming.ldap.LdapName.endsWith and startsWith are not threadsafe
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5978
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5978
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M7
>            Reporter: Regis Xu
>            Assignee: Tony Wu
>             Fix For: 5.0M8
>
>         Attachments: HARMONY-5978.diff
>
>
> the test case:
> LdapRdnParser parser1 = new LdapRdnParser("cn=test");
> LdapRdnParser parser2 = new LdapRdnParser("o=harmony+sn=test");
> List list = parser1.getList();
> assertEquals(1, list.size());
> assertEquals("cn", ((Attribute) list.get(0)).getID());
> assertEquals("test", ((Attribute) list.get(0)).get());
> This problem is caused by constructor of Rdn, which ues LdapRdnParser pase string to RDN, like this:
> parser = new LdapRdnParser(rdnString);
> list = parser.getList();
> and LdapRdnParser use a static field 'name' in constructor() and getList(), this will cause inconsistency

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