-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
BugBug fixesBug fixesTicket CreatedregressionRegression bug. Introduced due to changes in unrelated codeRegression bug. Introduced due to changes in unrelated code
Description
Summary :
pki ca-kraconnector-show --help command should display usage when no parameters or invalid parameters are provided
Build:
Fedora release 42 (Adams)
dogtag-pki-11.7.0-0.1.alpha1.20250617181155UTC.9f944cd4.fc42.x86_64
COPR: @pki/master
Steps to reproduce:
- Install necessary dogtag pki pakages
- Install CA and KRA subsystems
- Run the command to get usage with --help
pki -d /opt/pki/certdb -P http -p 20080 -h pki1.example.com -c
SECret.123 -n "PKI CA Administrator for Example.Org" ca-kraconnector-show --help
Usage is provided correctly
4. Now give no parameter or bogus input eg "ASDF' instead of "--help"
Expected:
Expected that the command would provide command usage as it does for "--help"
# pki -d /opt/pki/certdb -P https -p 20443 -h pki1.example.com -c SECret.123 -n "PKI CA Administrator for Example.Org" ca-kraconnector-show --help
usage: ca-kraconnector-show [OPTIONS...]
--debug Run in debug mode.
--help Show help message.
-v,--verbose Run in verbose mode.
Actual :
The command tries to execute with " " or invalid input params giving misleading error
`pki -d /opt/pki/certdb -P https -p 20443 -h pki1.example.com -c SECret.123 -n "PKI CA Administrator for Example.Org" ca-kraconnector-show asdf`
ConnectorNotFoundException: No KRA connectors
pki -d /opt/pki/certdb -P https -p 20443 -h pki1.example.com -c SECret.123 -n "PKI CA Administrator for Example.Org" ca-kraconnector-show
ConnectorNotFoundException: No KRA connectors
Metadata
Metadata
Assignees
Labels
BugBug fixesBug fixesTicket CreatedregressionRegression bug. Introduced due to changes in unrelated codeRegression bug. Introduced due to changes in unrelated code