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.
Description of problem:
Per Geetika:
2. Change in behavior of help messages.
Earlier, the way it used to work is it always show all the "--help"
options.
# pki kra-key-mod --help
usage: kra-key-mod <Key ID> --status <status> [OPTIONS...]
--help Show help options
--status <status> Status of the key.
Valid values: active, inactive
Now, we have to give status option and it's value, then only "--help"
option works. A new user might find it difficult to know possible value
of status.
_cmd 1_: # pki -d /opt/pki/certdb -P http -p 21080 -h pki1.example.com
-c SECret.123 -n "PKI KRA Administrator for Example.Org" kra-key-mod --help
SEVERE: MissingOptionException: Missing required option: status
_cmd 2:_ # pki -d /opt/pki/certdb -P http -p 21080 -h pki1.example.com
-c SECret.123 -n "PKI KRA Administrator for Example.Org" kra-key-mod
--status --help
SEVERE: MissingArgumentException: Missing argument for option: status
_cmd 3:_ # pki -d /opt/pki/certdb -P http -p 21080 -h pki1.example.com
-c SECret.123 -n "PKI KRA Administrator for Example.Org" kra-key-mod
--status abc --help
usage: kra-key-mod <Key ID> --status <status> [OPTIONS...]
--debug Run in debug mode.
--help Show help message.
--status <status> Status of the key.
Valid values: active, inactive
-v,--verbose Run in verbose mode.
Version-Release number of selected component (if applicable):
10.8.0-alpha0
How reproducible:
Very
Steps to Reproduce:
1. See above
Actual results:
Doesn't display help text without --status
Expected results:
Should display help text without --status.
Additional info:
Detected by gating.
Comment 1Endi Sukma Dewata
2019-12-05 17:53:06 UTC
Tested in version:
[root@pki1 ~]# rpm -qi pki-kra
Name : pki-kra
Version : 10.8.0
Release : 0.4.module+el8.2.0+5228+a2bc7b32
Architecture: noarch
Install Date: Fri 10 Jan 2020 10:53:42 PM IST
Group : Unspecified
Size : 536468
License : GPLv2 and LGPLv2
Signature : RSA/SHA256, Sat 14 Dec 2019 02:59:03 AM IST, Key ID 199e2f91fd431d51
Source RPM : pki-core-10.8.0-0.4.module+el8.2.0+5228+a2bc7b32.src.rpm
Build Date : Sat 14 Dec 2019 12:26:29 AM IST
Build Host : arm64-036.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor : Red Hat, Inc.
URL : http://www.dogtagpki.org/
Summary : PKI KRA Package
Test Procedure:
https://bugzilla.redhat.com/show_bug.cgi?id=1777032#c0
Proof of concept:
[root@pki1 ~]# pki -d /root/nssdb/ -c SECret.123 -P http -p 21080 -n "PKI KRA Administrator for Example.Org" kra-key-mod --help
usage: kra-key-mod <Key ID> --status <status> [OPTIONS...]
--debug Run in debug mode.
--help Show help message.
--status <status> Status of the key.
Valid values: active, inactive
-v,--verbose Run in verbose mode.
Now, The fix can display help text without --status parameter.
Hence, Marking this Bugzilla as Verified.
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://access.redhat.com/errata/RHSA-2020:1644
Description of problem: Per Geetika: 2. Change in behavior of help messages. Earlier, the way it used to work is it always show all the "--help" options. # pki kra-key-mod --help usage: kra-key-mod <Key ID> --status <status> [OPTIONS...] --help Show help options --status <status> Status of the key. Valid values: active, inactive Now, we have to give status option and it's value, then only "--help" option works. A new user might find it difficult to know possible value of status. _cmd 1_: # pki -d /opt/pki/certdb -P http -p 21080 -h pki1.example.com -c SECret.123 -n "PKI KRA Administrator for Example.Org" kra-key-mod --help SEVERE: MissingOptionException: Missing required option: status _cmd 2:_ # pki -d /opt/pki/certdb -P http -p 21080 -h pki1.example.com -c SECret.123 -n "PKI KRA Administrator for Example.Org" kra-key-mod --status --help SEVERE: MissingArgumentException: Missing argument for option: status _cmd 3:_ # pki -d /opt/pki/certdb -P http -p 21080 -h pki1.example.com -c SECret.123 -n "PKI KRA Administrator for Example.Org" kra-key-mod --status abc --help usage: kra-key-mod <Key ID> --status <status> [OPTIONS...] --debug Run in debug mode. --help Show help message. --status <status> Status of the key. Valid values: active, inactive -v,--verbose Run in verbose mode. Version-Release number of selected component (if applicable): 10.8.0-alpha0 How reproducible: Very Steps to Reproduce: 1. See above Actual results: Doesn't display help text without --status Expected results: Should display help text without --status. Additional info: Detected by gating.