Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 5332 - BUG - normalise filter as intended #5341

Closed
wants to merge 1 commit into from

Conversation

Firstyear
Copy link
Contributor

Bug Description: Due to a mistake in the optimiser rework
the filter as intended was not normalised, causing some searches
to fail

Fix Description: Always normalise both filters.

fixes: #5332

Author: William Brown william@blackhats.net.au

Review by: ???

Bug Description: Due to a mistake in the optimiser rework
the filter as intended was not normalised, causing some searches
to fail

Fix Description: Always normalise both filters.

fixes: 389ds#5332

Author: William Brown <william@blackhats.net.au>

Review by: ???
Copy link
Contributor

@mreynolds389 mreynolds389 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your latest PR does fix the issue, but there is a minor compiler warning I'd like you to fix:

../389-ds-base/ldap/servers/slapd/back-ldbm/ldbm_search.c: In function ‘ldbm_back_next_search_entry’:
../389-ds-base/ldap/servers/slapd/back-ldbm/ldbm_search.c:1481:13: warning: unused variable ‘val’ [-Wunused-variable]
 1481 |         int val = 1;
      |             ^~~

@mreynolds389
Copy link
Contributor

I also added a test case for you in the original issue:

#5332 (comment)

@Firstyear
Copy link
Contributor Author

I don't have time to merge/review this due to having to work on some SUSE customer issues atm.

@mreynolds389
Copy link
Contributor

I don't have time to merge/review this due to having to work on some SUSE customer issues atm.

It's all good, but I made a mistake by doing Fedora builds with the incomplete fix a few days ago and it broke other projects. So I created a duplicate PR (#5342) of this with the updated CI test and compiler warning fix (it's signed off, so you are still the author). Anyway I am going to close this PR and merge my PR tonight (and do new builds).

Thanks again for working on this!

@Firstyear Firstyear deleted the 5332-normalise branch June 14, 2022 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nightly test failure in IPA server installation
2 participants