Red Hat Bugzilla – Bug 1061772
[WebUI] Maximum serial number search accepts negative inputs and lists wrong search results.
Last modified: 2015-03-05 05:10:28 EST
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:
Created attachment 859703 [details] min serial number search -1
Created attachment 859704 [details] max serial number search -1
Created attachment 859705 [details] max serial number search -10
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 ...
Upstream ticket: https://fedorahosted.org/freeipa/ticket/4163
Fixed upstream: be7b1b94e300b137c34bab80df3dc91195259c89 Certificate search max_serial_number problem fixed
Created attachment 984685 [details] IPA Error 3009: ValidationError Verified. IPA version: ------------ ipa-server-4.1.0-15.el7.x86_64
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