harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5978) [classlib][jndi] - javax.naming.ldap.LdapName.endsWith and startsWith are not threadsafe
Date Thu, 11 Sep 2008 02:02:44 GMT
[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
             Fix For: 5.0M8


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