#3128 Calling pki with empty protocol should generate user-friendly message
Closed: migrated 3 years ago by dmoluguw. Opened 4 years ago by edewata.

Calling pki with -P '' should generate user-friendly message instead of Traceback.

[root@pki1 ~]# pki -d /root/nssdb/ -c SECret.123 -P '' -p 20080 -n "PKI CA Administrator for Example.Org" ca
Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/pki/cli/main.py", line 255, in <module>
    cli.execute(sys.argv)
  File "/usr/lib/python3.6/site-packages/pki/cli/main.py", line 161, in execute
    if args[i][0] != '-':
IndexError: string index out of range

Actual results:
It is generating Traceback.

Expected results:
It should generate user-friendly message, e.g. Invalid protocol.


Metadata Update from @edewata:
- Custom field component adjusted to None
- Custom field feature adjusted to None
- Custom field origin adjusted to None
- Custom field proposedmilestone adjusted to None
- Custom field proposedpriority adjusted to None
- Custom field reviewer adjusted to None
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1791666
- Custom field type adjusted to None
- Custom field version adjusted to None

4 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/3245

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata