You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Zoerner (JIRA)" <ji...@apache.org> on 2006/06/12 14:03:29 UTC

[jira] Created: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Searches with quotes in the search base do not work as expected.
----------------------------------------------------------------

         Key: DIRSERVER-642
         URL: http://issues.apache.org/jira/browse/DIRSERVER-642
     Project: Directory ApacheDS
        Type: Bug

    Versions: 1.0-RC3    
 Environment: ApacheDS 1.0 RC 3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Microsoft Windows XP version 5.1 Service Pack 1
    Reporter: Stefan Zoerner
    Priority: Minor


Searches with quotes in the search base do not work as expected. I have a created a person entry:

dn: cn=Kylie Minogue,dc=example,dc=com
objectclass: top
objectclass: person
sn: Minogue
cn: Kylie Minogue

and try to find it with the following search parameters:

BASE DN: cn="Kylie Minogue",dc=example,dc=com
Filter: (cn=Kylie Minogue)
Scope: BASE

No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).

I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=comments#action_12415843 ] 

Emmanuel Lecharny commented on DIRSERVER-642:
---------------------------------------------

sheot... I missed this one.

LdapDN will be modified to accept those kind of entries.

Thanks Stefan !

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>          Key: DIRSERVER-642
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>     Reporter: Stefan Zoerner
>     Priority: Minor
>  Attachments: SearchWithQuotesTest.java
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=all ]

Alex Karasulu closed DIRSERVER-642.
-----------------------------------

    Assignee: Emmanuel Lecharny  (was: Alex Karasulu)

Looks like this was closed.  Sorry I assigned it to me.

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>                 Key: DIRSERVER-642
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Emmanuel Lecharny
>            Priority: Minor
>         Attachments: SearchWithQuotesTest.java
>
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=comments#action_12415844 ] 

Stefan Zoerner commented on DIRSERVER-642:
------------------------------------------

Here is a little reminder for an additional comment in RFC 2253 (same place as cite in issue description above):

Inside the quoted value, the following characters can occur without any escaping: ",", "=", "+", "<", ">", "#" and ";"

I hope it will not make it too difficult to implement ...

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>          Key: DIRSERVER-642
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>     Reporter: Stefan Zoerner
>     Priority: Minor
>  Attachments: SearchWithQuotesTest.java
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=all ]

Stefan Zoerner updated DIRSERVER-642:
-------------------------------------

    Attachment: SearchWithQuotesTest.java

JUnit test case to demonstrate DIRSERVER-642, uses JNDI and its LDAP provider to connect to the server.

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>          Key: DIRSERVER-642
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>     Reporter: Stefan Zoerner
>     Priority: Minor
>  Attachments: SearchWithQuotesTest.java
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=all ]

Alex Karasulu reassigned DIRSERVER-642:
---------------------------------------

    Assignee: Alex Karasulu

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>                 Key: DIRSERVER-642
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Alex Karasulu
>            Priority: Minor
>         Attachments: SearchWithQuotesTest.java
>
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=all ]
     
Emmanuel Lecharny resolved DIRSERVER-642:
-----------------------------------------

    Resolution: Fixed

Fixed !!!

This was quite a harsh... LdapDN has been totally transformed to handle this case, and many others. 

The result is quite interesting :
- LdapDN parsing is around 35% faster than the previous version
- and it need far less memory, too, so the GC is launched less.

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>          Key: DIRSERVER-642
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>     Reporter: Stefan Zoerner
>     Priority: Minor
>  Attachments: SearchWithQuotesTest.java
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRSERVER-642) Searches with quotes in the search base do not work as expected.

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-642?page=comments#action_12424619 ] 
            
Stefan Zoerner commented on DIRSERVER-642:
------------------------------------------

I have retetested the problem on the current optimization branch (Revision 427216) and I can confirm that it is fixed. Well done, Emmanuel! I'll close the issue when the code is merged in the 1.0 branch.

> Searches with quotes in the search base do not work as expected.
> ----------------------------------------------------------------
>
>                 Key: DIRSERVER-642
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-642
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>            Priority: Minor
>         Attachments: SearchWithQuotesTest.java
>
>
> Searches with quotes in the search base do not work as expected. I have a created a person entry:
> dn: cn=Kylie Minogue,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Minogue
> cn: Kylie Minogue
> and try to find it with the following search parameters:
> BASE DN: cn="Kylie Minogue",dc=example,dc=com
> Filter: (cn=Kylie Minogue)
> Scope: BASE
> No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).
> I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira