[ http://issues.apache.org/jira/browse/DIRSERVER-638?page=all ]

Alex Karasulu closed DIRSERVER-638.
-----------------------------------

    Fix Version/s: 1.1.0
                   1.0-RC4
       Resolution: Fixed

Sorry E I fixed this one before I read your comment to stop and talk about it.  
My fixes solve the issues in this test case.  All stuff seems to pass.  However 
if you don't like the solution which was on commits: 429140 and 429141 let me 
know I can roll them back.

Currently this fix only works if the DN value that is escaped is for a String 
based attribute.  If it is binary then the server will bomb out.  I'm not so 
worried about this since it is very very very rare to be using a binary 
attribute in the DN or the filter assertions.

Let me know what you want to do with this buddy and I can rollback.  Again 
sorry about moving fast on this without consultation. (I figured you were MIA 
on vacation).



> Searches with escaped characters in the base DN fail.
> -----------------------------------------------------
>
>                 Key: DIRSERVER-638
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-638
>             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
>             Fix For: 1.1.0, 1.0-RC4
>
>         Attachments: SearchWithEscapedCharacters.java
>
>
> Searches with escaped characters in the base DN fail. I have created a test 
> entry like this:
> dn: sn=Ferry,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Ferry
> cn: Bryan Ferry
> and perform searches with the following parameters
> 1)
> BASE DN: sn=\46\65\72\72\79,dc=example,dc=com
> Filter: (cn=Bryan Ferry)
> Scope: BASE
> 2)
> BASE DN: sn=#4665727279,dc=example,dc=com
> Filter: (cn=Bryan Ferry)
> Scope: BASE
> In both cases the entry is not found, although it should (see examples in 
> Chapter 5 of RFC 2253). In example 1 the search base is the DN of the example 
> with "Ferry" escaped with backslashes. The second example is the same search 
> base, but with the value BER encoded (octet String).
> An attached JUnit test creates the entry and performs both search ops. It 
> passes with Sun Java System Directory Server 5.2 but fails with ApacheDS.

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

        

Reply via email to