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

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

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


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Regis Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Regis Xu closed HARMONY-5978.
-----------------------------


Verified. Thanks Tony.

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


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

Posted by "Regis Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Regis Xu updated HARMONY-5978:
------------------------------

    Attachment: HARMONY-5978.diff

Anyone want to try this?

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


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu resolved HARMONY-5978.
------------------------------

    Resolution: Fixed

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