RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1331599 - Paged results search returns the blank list of entries
Summary: Paged results search returns the blank list of entries
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
Depends On:
Blocks: 1335108
TreeView+ depends on / blocked
Reported: 2016-04-28 23:52 UTC by Noriko Hosoi
Modified: 2020-09-13 21:43 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-
Doc Type: Bug Fix
Doc Text:
Cause: When a simple paged results slot in a connection is discarded due to an error, e.g., SIZELIMIT_EXCEEDED, the slot was not properly cleaned up. Consequence: If the slot was reused, the leftover flag confused the code and ended up returning the 0 search result. Fix: The simple paged results slot is cleaned up properly. Result: If the simple paged result slot is reused, the correct search result is returned.
Clone Of:
: 1335108 (view as bug list)
Last Closed: 2017-03-21 10:21:29 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1868 0 None None None 2020-09-13 21:43:01 UTC
Red Hat Product Errata RHBA-2017:0667 0 normal SHIPPED_LIVE 389-ds-base bug fix update 2017-03-21 12:35:05 UTC

Description Noriko Hosoi 2016-04-28 23:52:30 UTC
This bug is created as a clone of upstream ticket:

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:

How reproducible:
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:                                                                                                                                                                                                                                              
- When I try to do it manually - everything is okay.                                                                                                                                                                                            
- When I try to move last test case to another place (for example at the beginning), it is PASSed.                                                                                                                                                                                                                      
- When I remove only "Test support multiple paging controls on a single connection" - last and other tests PASS                                                                                                                                                                                                        
- When I remove only "Abandon search request with setting page_size = 0" - last and other tests PASS  
- Also if switch the order of last two test cases, everything will PASS.                                                                                                                                                                                                                
I do tear down with deleting users and setting attributes to the default values after each test case.

Comment 7 Simon Pichugin 2016-11-25 13:14:05 UTC
============================= test session starts =============================
platform linux2 -- Python 2.7.8, pytest-3.0.4, py-1.4.31, pluggy-0.4.0 -- /opt/rh/python27/root/usr/bin/python
cachedir: .cache
DS build: B2016.312.1950
nss: 3.27.1-7.el6
nspr: 4.13.1-1.el6
openldap: 2.4.40-14.el6
svrcore: 4.0.4-5.1.el6

rootdir: /mnt/tests/rhds/tests/upstream/ds, inifile:
plugins: html-1.11.1, cov-2.4.0, beakerlib-0.6
collected 1 items

dirsrvtests/tests/tickets/ticket48808_test.py::test_ticket48808 PASSED

========================== 1 passed in 34.66 seconds ==========================

Marking as verified.

Comment 9 errata-xmlrpc 2017-03-21 10:21:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.