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 - [WebUI] Maximum serial number search accepts negative inputs and lists wrong search results.
Summary: [WebUI] Maximum serial number search accepts negative inputs and lists wrong ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: x86_64
OS: Linux
medium
unspecified
Target Milestone: rc
: ---
Assignee: Martin Kosek
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-05 15:33 UTC by Xiyang Dong
Modified: 2015-03-05 10:10 UTC (History)
3 users (show)

Fixed In Version: ipa-4.0.3-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 10:10:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
min serial number search -1 (414.67 KB, image/png)
2014-02-05 15:34 UTC, Xiyang Dong
no flags Details
max serial number search -1 (473.82 KB, image/png)
2014-02-05 15:35 UTC, Xiyang Dong
no flags Details
max serial number search -10 (481.82 KB, image/png)
2014-02-05 15:35 UTC, Xiyang Dong
no flags Details
IPA Error 3009: ValidationError (63.59 KB, image/png)
2015-01-27 14:23 UTC, Varun Mylaraiah
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0442 0 normal SHIPPED_LIVE Moderate: ipa security, bug fix, and enhancement update 2015-03-05 14:50:39 UTC

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


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