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 1061772

Summary: [WebUI] Maximum serial number search accepts negative inputs and lists wrong search results.
Product: Red Hat Enterprise Linux 7 Reporter: Xiyang Dong <xdong>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: jgalipea, mvarun, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ipa-4.0.3-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 10:10:28 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:
Attachments:
Description Flags
min serial number search -1
none
max serial number search -1
none
max serial number search -10
none
IPA Error 3009: ValidationError none

Description Xiyang Dong 2014-02-05 15:33:16 UTC
Description of problem:
Maximum serial number search accepts negative inputs and lists wrong search results.
when search max serial number between -1 and -9 :  it lists out cert #1-9
when search max serial number <= -10 : it lists out all certs #1-10
 
While Minimum serial number search would throw error:
invalid 'min_serial_number': must be at least 0 for negative inputs

See attachment for details. 

Version-Release number of selected component (if applicable):
ipa-server-3.3.3-10.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Go to WebUI cert page 
2.Search for maximum serial number with a negative integer
3.Check search result

Actual results:
Instead of throwing out an error like min serial number does, it lists out wrong search result.

Expected results:
throw out an error like min serial number does:
invalid 'max_serial_number': must be at least 0

Additional info:

Comment 1 Xiyang Dong 2014-02-05 15:34:07 UTC
Created attachment 859703 [details]
min serial number search -1

Comment 2 Xiyang Dong 2014-02-05 15:35:11 UTC
Created attachment 859704 [details]
max serial number search -1

Comment 3 Xiyang Dong 2014-02-05 15:35:41 UTC
Created attachment 859705 [details]
max serial number search -10

Comment 4 Martin Kosek 2014-02-05 16:20:26 UTC
This applies both for UI and CLI:

]# ipa cert-find --max-serial-number=-1
----------------------
9 certificates matched
----------------------
  Serial number (hex): 0x1
  Serial number: 1
  Status: VALID
  Subject: CN=Certificate Authority,O=EXAMPLE.COM
...

Comment 5 Martin Kosek 2014-02-05 16:21:02 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4163

Comment 7 Martin Kosek 2014-02-25 16:34:08 UTC
Fixed upstream:

be7b1b94e300b137c34bab80df3dc91195259c89 Certificate search max_serial_number problem fixed

Comment 10 Varun Mylaraiah 2015-01-27 14:23:26 UTC
Created attachment 984685 [details]
IPA Error 3009: ValidationError

Verified.

IPA version:
------------
ipa-server-4.1.0-15.el7.x86_64

Comment 12 errata-xmlrpc 2015-03-05 10:10:28 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.

https://rhn.redhat.com/errata/RHSA-2015-0442.html