Description of problem: After series of actions, paged result search that should returns list of entries returns blank list of entries. It is hardly reproducible manually, but it is easy to reproduce with python automation.
Version-Release number: 389-ds-base-1.3.4.0-29.el7_2.x86_64
How reproducible: Always
Step to reproduce: 1. Create DS standalone instance 2. Create user for search operations 3. Run test for checking support of multiple paging controls on a single connection - Trac 260 4. Run test for abandon search request with setting page_size = 0 5. Run test for 'nsPagedSizeLimit = 5' and 'nsslapd-pagedsizelimit = 15', its override feature. Search with page size 10 - expect to fail. 6. Run test for 'nsPagedSizeLimit = 15' and 'nsslapd-pagedsizelimit = 5', its override feature. Search with page size 10 - expect to pass.
Actual results: On the last step search with paged results returns the blank list of entries.
Expected results: Search with 'nsPagedSizeLimit = 15' and 'nsslapd-pagedsizelimit = 5', should return all 10 requested entries.
Additional information:
I do tear down with deleting users and setting attributes to the default values after each test case.
attachment 0001-Ticket-48808-Add-test-case.patch
git patch file (master) 0001-Ticket-48808-Paged-results-search-returns-the-blank-.patch
Thanks to Simon for the test case. Once the patch 0001-Ticket-48808-Paged-results-search-returns-the-blank-.patch is applied, the server passes the test: {{{ [...] INFO:tickets.ticket48808_test:Create simple paged results control instance INFO:tickets.ticket48808_test:Search should PASS INFO:tickets.ticket48808_test:Getting page 0 INFO:tickets.ticket48808_test:10 results INFO:tickets.ticket48808_test:Set Directory Manager bind back INFO:tickets.ticket48808_test:Deleting 10 users INFO:tickets.ticket48808_test:Set nsslapd-pagedsizelimit to ['0']. Previous value - ['5']. Modified suffix - cn=config. INFO:tickets.ticket48808_test:Set nsPagedSizeLimit to None. Previous value - ['15']. Modified suffix - uid=simplepaged_test,dc=example,dc=com. OK group dirsrv exists OK user dirsrv exists .DEBUG:lib389:running: /home/nhosoi/install/sbin/remove-ds.pl -i slapd-standalone Instance slapd-standalone removed. =========================== 1 passed in 7.81 seconds =========================== }}}
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1331599
Looks good, ack,
Reviewed by William (Thanks!!!)
Pushed to master: 3348bcf..09180b2 master -> master commit 09180b25570696d24c86e3a046fb497c15549c64
Pushed to 389-ds-base-1.3.4: d8fefaa..a8486ab 389-ds-base-1.3.4 -> 389-ds-base-1.3.4 commit a8486ab3b364a9ae088d6404d025058b04ac358d
Pushed to 389-ds-base-1.2.11: 423c15c..e51b423 389-ds-base-1.2.11 -> 389-ds-base-1.2.11 commit e51b4238809a5421fd470f02853d38a70747f7bd
Pushed to master: c9e4921..91f3e59 master -> master commit 91f3e592713ea58602412ed773a497583f2ebd6c
Pushed to 389-ds-base-1.3.4: 492a1d8..99b5048 389-ds-base-1.3.4 -> 389-ds-base-1.3.4 commit 99b5048b09e64cea6f8bf5e7d524679960ce0a44
Pushed to 389-ds-base-1.2.11: 0a50470..2550047 389-ds-base-1.2.11 -> 389-ds-base-1.2.11 commit 2550047132de7a94401a987114bbd150e4bcef09
Metadata Update from @firstyear: - Issue assigned to nhosoi - Issue set to the milestone: 1.2.11.33
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/1868
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)