Closed (fixed)
Project:
Lightweight Directory Access Protocol
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2020 at 01:46 UTC
Updated:
12 Apr 2021 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
dravenkComment #4
dravenkComment #5
grahlHi
Thanks for the bug report, the patch itself looks fine, but we have a test already covering that logic and I'd like to have that case covered, since we seem to have made assumptions in LdapAuthorizationProviderTest::testFilterProposal() which don't cover this case.
@dravenk: Could you supply the additional test case in there in your patch?
Comment #6
dravenkThank you. I will submit a fail test patch.
Comment #7
dravenkComment #8
dravenkThe latest MR contains a failed test for #7, so it will pass.
Comment #9
dravenkThe latest MR adds only one test. Since #5 has been reviewed, I changed the status to RTBC.
Comment #10
dravenkI reexamined the code and found that using assertEquals is more accurate. This is because the regular expression provided here will filter out only the first group content, avoiding the second group content.
Comment #12
dravenkThe test case is given in comment #comment-13958122 is clear.
Comment #14
grahlThanks!
I made the count comparison strict but otherwise committed as-is.