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/06 16:38:29 UTC
[jira] Created: (DIRSERVER-635) Some search filters with
combinations of OR and substrings do not work correctly
Some search filters with combinations of OR and substrings do not work correctly
--------------------------------------------------------------------------------
Key: DIRSERVER-635
URL: http://issues.apache.org/jira/browse/DIRSERVER-635
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
Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
dn: cn=Kate Bush,dc=example,dc=com
objectclass: person
objectclass: top
sn: Bush
cn: Kate Bush
dn: cn=Tori Amos,dc=example,dc=com
objectclass: person
objectclass: top
sn: Amos
cn: Tori Amos
the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
$ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
version: 1
dn: cn=Tori Amos,dc=example,dc=com
$ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
version: 1
dn: cn=Kate Bush,dc=example,dc=com
whereas the following similar searches work
$ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
version: 1
dn: cn=Kate Bush,dc=example,dc=com
dn: cn=Tori Amos,dc=example,dc=com
$ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
version: 1
dn: cn=Tori Amos,dc=example,dc=com
--
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-635) Some search filters with
combinations of OR and substrings do not work correctly
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-635?page=comments#action_12425564 ]
Alex Karasulu commented on DIRSERVER-635:
-----------------------------------------
Emmanuel may have fixed this so I'll try to confirm the bug is present or not.
> Some search filters with combinations of OR and substrings do not work correctly
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-635
> URL: http://issues.apache.org/jira/browse/DIRSERVER-635
> 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
>
> Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> dn: cn=Tori Amos,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Amos
> cn: Tori Amos
> the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> whereas the following similar searches work
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> dn: cn=Tori Amos,dc=example,dc=com
> $ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
--
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-635) Some search filters with
combinations of OR and substrings do not work correctly
Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-635?page=all ]
Stefan Zoerner closed DIRSERVER-635.
------------------------------------
I confirm that the error as described in the issue does not occur in my environment with the the current 1.0 branch snapshot. Therefore I close the issue. Well done!
> Some search filters with combinations of OR and substrings do not work correctly
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-635
> URL: http://issues.apache.org/jira/browse/DIRSERVER-635
> 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
>
> Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> dn: cn=Tori Amos,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Amos
> cn: Tori Amos
> the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> whereas the following similar searches work
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> dn: cn=Tori Amos,dc=example,dc=com
> $ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
--
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-635) Some search filters with
combinations of OR and substrings do not work correctly
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-635?page=all ]
Emmanuel Lecharny resolved DIRSERVER-635.
-----------------------------------------
Resolution: Fixed
Ok, the bug is fixed, and the test has also been fixed.
note : do *NOT* use spaces in filters when trying to have fun with JNDI search operation. It's simply far ahead of JNDI parsing capacity !
> Some search filters with combinations of OR and substrings do not work correctly
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-635
> URL: http://issues.apache.org/jira/browse/DIRSERVER-635
> 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
>
> Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> dn: cn=Tori Amos,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Amos
> cn: Tori Amos
> the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> whereas the following similar searches work
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> dn: cn=Tori Amos,dc=example,dc=com
> $ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
--
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-635) Some search filters with
combinations of OR and substrings do not work correctly
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-635?page=all ]
Alex Karasulu reassigned DIRSERVER-635:
---------------------------------------
Assignee: Alex Karasulu
> Some search filters with combinations of OR and substrings do not work correctly
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-635
> URL: http://issues.apache.org/jira/browse/DIRSERVER-635
> 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
>
> Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> dn: cn=Tori Amos,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Amos
> cn: Tori Amos
> the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> whereas the following similar searches work
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> dn: cn=Tori Amos,dc=example,dc=com
> $ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
--
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-635) Some search filters with
combinations of OR and substrings do not work correctly
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-635?page=comments#action_12425592 ]
Emmanuel Lecharny commented on DIRSERVER-635:
---------------------------------------------
For an unknow reason, we receive these bytes :
0x30 0x67
0x02 0x01 0x05
0x63 0x45
0x04 0x09
0x6F 0x75 0x3D 0x73 0x79 0x73 0x74 0x65 0x6D
0x0A 0x01 0x01
0x0A 0x01 0x03
0x02 0x01 0x00
0x02 0x01 0x00
0x01 0x01 0x00
0xA3 0x27 // This is an Equality match
0x04 0x07
0x20 0x7C 0x20 0x28 0x20 0x63 0x6E // This is " | ( cn"
0x04 0x1C
0x4B 0x61 0x74 0x65 0x20 0x42 0x75 0x73 0x68 0x20 0x29 0x20 0x28 0x20 0x63 0x6E // This is "Kate Bush ) ( cn=Tori Amos) "
0x3D 0x54 0x6F 0x72 0x69 0x20 0x41 0x6D 0x6F 0x73 0x29 0x20
0x30 0x00
0xA0 0x1B
0x30 0x19
0x04 0x17
0x32 0x2E 0x31 0x36 0x2E 0x38 0x34 0x30 0x2E 0x31 0x2E 0x31 0x31 0x33 0x37 0x33 0x30 0x2E 0x33 0x2E 0x34 0x2E 0x32
So the decoder is OK, but I suspect that the encoding is really bad somewhere...
> Some search filters with combinations of OR and substrings do not work correctly
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-635
> URL: http://issues.apache.org/jira/browse/DIRSERVER-635
> 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
>
> Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> dn: cn=Tori Amos,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Amos
> cn: Tori Amos
> the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> whereas the following similar searches work
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> dn: cn=Tori Amos,dc=example,dc=com
> $ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
--
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-635) Some search filters with
combinations of OR and substrings do not work correctly
Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-635?page=comments#action_12425607 ]
Stefan Zoerner commented on DIRSERVER-635:
------------------------------------------
Please note that the issue as described in the original description does not exists in the current 1.0 branch.
> Some search filters with combinations of OR and substrings do not work correctly
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-635
> URL: http://issues.apache.org/jira/browse/DIRSERVER-635
> 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
>
> Some search filters which use OR and substrings do not work correctly. If I import the following two entries to the dc=example,dc=com partition
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> dn: cn=Tori Amos,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Amos
> cn: Tori Amos
> the following two searches for instance provide wrong results, only one of the expected two entries is returned in both cases:
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate*)(cn=Tori*))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos)(cn=Kate*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> whereas the following similar searches work
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=Kate Bush)(cn=Tori*))" dn
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> dn: cn=Tori Amos,dc=example,dc=com
> $ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s one "(|(cn=*Amos))" dn
> version: 1
> dn: cn=Tori Amos,dc=example,dc=com
--
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