#2683 exception Invalid module "--ignore-banner" when defined in ~/.dogtag/pki.conf and run pki pkcs12-import --help
Closed: fixed Opened by mharmsen.

Exception: Invalid module "--ignore-banner" occurs when
PKI_CLI_OPTIONS=--ignore-banner is defined in ~/.dogtag/pki.conf
and you run pki -v pkcs12-import --help

Steps to Reproduce:

1.Define PKI_CLI_OPTIONS=--ignore-banner in ~/.dogtag/pki.conf
2.run 'pki -d /tmp/nssdb -c Secret123 client-init'
3.run 'pki pkcs12-import --help'

Actual results:

pki pkcs12-import --help
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/pki/cli/main.py", line 209, in
<module>
    cli.execute(sys.argv)
  File "/usr/lib/python2.7/site-packages/pki/cli/main.py", line 194, in execute
    (module, module_args) = self.parse_args(cmd_args)
  File "/usr/lib/python2.7/site-packages/pki/cli/__init__.py", line 160, in
parse_args
    raise Exception('Invalid module "%s".' % command)
Exception: Invalid module "--ignore-banner".

Expected results:

Error shouldn't occur and help should be displayed.

Metadata Update from @mharmsen:
- Custom field component adjusted to General
- Custom field feature adjusted to ''
- Custom field origin adjusted to Community
- Custom field proposedmilestone adjusted to ''
- Custom field proposedpriority adjusted to ''
- Custom field reviewer adjusted to ''
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1448903
- Custom field type adjusted to defect
- Custom field version adjusted to ''
- Issue assigned to edewata
- Issue priority set to: critical

Fixed in master:

  • https://github.com/dogtagpki/pki/commit/62841380c6400023cf973e273ab974352885fabd

Metadata Update from @edewata:
- Issue close_status updated to: fixed
- Issue set to the milestone: 10.4.5 (was: 10.4)
- Issue status updated to: Closed (was: Open)

Metadata Update from @mharmsen:
- Custom field fixedinversion adjusted to pki-core-10.4.7-1.fc27

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/2803

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