pki-server ca-cert-request-show throws attribute error when ran with invalid subsystem type
Steps to Reproduce:
Run the pki-sever subsystem command with invalid subsystem type
Actual results:
[root@pki1 ca]# pki-server subsystem-show -i pki-tomcat sdfsdf Traceback (most recent call last): File "/usr/sbin/pki-server", line 112, in <module> cli.execute(sys.argv) File "/usr/sbin/pki-server", line 104, in execute super(PKIServerCLI, self).execute(args) File "/usr/lib/python2.7/site-packages/pki/cli/__init__.py", line 203, in execute module.execute(module_args) File "/usr/lib/python2.7/site-packages/pki/cli/__init__.py", line 203, in execute module.execute(module_args) File "/usr/lib/python2.7/site-packages/pki/server/cli/subsystem.py", line 181, in execute SubsystemCLI.print_subsystem(subsystem) File "/usr/lib/python2.7/site-packages/pki/server/cli/subsystem.py", line 53, in print_subsystem print(' Subsystem ID: %s' % subsystem.name) AttributeError: 'NoneType' object has no attribute 'name'
Expected results:
It should display proper error message stating invalid subsystem type
Per PKI Bug Council of 07/21/2016: 10.3.5
This is already fixed in ticket #2399.
Metadata Update from @myusuf@redhat.com: - Issue set to the milestone: 10.3.5
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/2531
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.