#2364 CLI :: pki-server ca-cert-request-show throws attribute error
Closed: Fixed None Opened 7 years ago by myusuf@redhat.com.

When ran pki-server ca-cert-request-show command, it throws:

     AttributeError: 'NoneType' object has no attribute 'get_cert_requests'

Steps to Reproduce:

1. Submit a CA cert request using caCACert profile
2. run pki-server ca-cert-request-show <request id>

Actual results:

[root@qe-blade-02 alias]# pki-server ca-cert-request-show 66
Traceback (most recent call last):
  File "/usr/sbin/pki-server", line 105, in <module>
    cli.execute(sys.argv)
  File "/usr/sbin/pki-server", line 100, 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/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/ca.py", line 298, in
execute
    request = subsystem.get_cert_requests(request_id)
AttributeError: 'NoneType' object has no attribute 'get_cert_requests'
[root@qe-blade-02 alias]# AttributeError: 'NoneType' object has no attribute
'get_cert_requests'

Additional info:

When looked into code, the module get_subsystem has list variable called
subsystem. subsystem is empty list.

Per PKI Bug Council of 06/23/2016: 10.3.4

Pushed to master (f8310a4ff306d28cf25ec71693a2e89c5323564d)

Metadata Update from @myusuf@redhat.com:
- Issue assigned to edewata
- Issue set to the milestone: 10.3.4

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

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.

Login to comment on this ticket.

Metadata