harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-5978) [classlib][jndi] - javax.naming.ldap.LdapName.endsWith and startsWith are not threadsafe
Date Thu, 11 Sep 2008 03:54:44 GMT

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

Tony Wu reassigned HARMONY-5978:
--------------------------------

    Assignee: Tony Wu

> [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.


Mime
View raw message