Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1464014

Summary: cert-request-find --size 1 --status pending returns all results instead of 1 entry
Product: Red Hat Enterprise Linux 8 Reporter: Amol K <akahat>
Component: pki-coreAssignee: RHCS Maintainers <rhcs-maint>
Status: CLOSED UPSTREAM QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: ascheel, edewata, mharmsen
Target Milestone: rcKeywords: GSSTriaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-10 05:27:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amol K 2017-06-22 09:39:23 UTC
Description of problem:
While finding the certificate request entries which is in pending status shows all entries when --size 1 is provided.

Version-Release number of selected component (if applicable):

KI Command-Line Interface 10.4.1-9.el7

How reproducible:
always

Steps to Reproduce:
1. Enroll some certificate entries.

2. pki -d /root/multihost_tests/certdb/ -h pki1.example.com -p 20080 -c Secret123 -n "PKI CA Administrator for Example.Org" cert-request-find --size 1 --status pending


Actual results:
-----------------
4 entries matched
-----------------
  Request ID: 68
  Type: enrollment
  Request Status: pending
  Operation Result: success

  Request ID: 69
  Type: enrollment
  Request Status: pending
  Operation Result: success

  Request ID: 78
  Type: enrollment
  Request Status: pending
  Operation Result: success

  Request ID: 79
  Type: enrollment
  Request Status: pending
  Operation Result: success
----------------------------
Number of entries returned 4
----------------------------
[root@pki1 ~]# 



Expected results:
-----------------
4 entries matched
-----------------
  Request ID: 68
  Type: enrollment
  Request Status: pending
  Operation Result: success
----------------------------
Number of entries returned 1
----------------------------
[root@pki1 ~]# 


Additional info:

Comment 2 Matthew Harmsen 2017-10-25 17:14:39 UTC
[20171025] - RHEL 7.5 pre-Alpha Offline Triage ==> 7.6

Comment 3 Matthew Harmsen 2018-07-04 00:22:07 UTC
Moved to RHEL 7.7.

Comment 5 Endi Sukma Dewata 2020-02-10 05:27:12 UTC
This issue will be addressed upstream.