#49617 SRCH results differ from one_level to subtree
Closed: wontfix 5 years ago by tbordaz. Opened 6 years ago by tbordaz.

Issue Description

Two searches return different results but they should not.
The same searches run as DM give the same result so it is an ACI. It is possibly a problem of rights evaluating the parentid component added to the one_level filter.

It is a regression compare to F27

ldapsearch -LLL  -D 'uid=my_user,ou=People,dc=example,dc=com' -w password -b 'ou=People,dc=example,dc=com' -s one "(uid=*)" dn

<no returned entry>

ldapsearch -LLL -D 'uid=my_user,ou=People,dc=example,dc=com' -w password -b 'ou=People,dc=example,dc=com' -s sub "(uid=*)" dn
dn: uid=my_user,ou=People,dc=example,dc=com

possibly related to https://pagure.io/389-ds-base/issue/49372

Package Version and Platform

master

Steps to reproduce

testcase attached

Actual results

Results differ

Expected results

Same result expected


Metadata Update from @tbordaz:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None

6 years ago

I think this is an effect of #49372. with the patch the optimised, rewritten filter is set to the pblock and used for aci evaluation whereas before the original filter was used

Metadata Update from @mreynolds:
- Issue set to the milestone: 1.4.0

6 years ago

@lkrispen patch looks good, it is ready to merge?

Metadata Update from @mreynolds:
- Issue assigned to lkrispen

5 years ago

@lkrispen - is this patch still applicable? Since we backed out the filter optimization fix is this bug still present?

@lkrispen - is this patch still applicable? Since we backed out the filter optimization fix is this bug still present?

the test case provided by Thierry passes on master, so backing out filter optimization makes the patch obsolete.

But we should probably commit the test case to ensure it will work one we reenable filter opt

I agree, we should add a test for this. Could we add the test to the filter optimisation suite, since that exists to highlight if issues arise in the process of optimising?

I can not reproduce that bug on master (d318d06) so it is fixed. Closing it.

Metadata Update from @tbordaz:
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

5 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2676

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: duplicate)

3 years ago

Login to comment on this ticket.

Metadata