#6742 Traceback is seen when Principal and Name of CSR generation tool is not specified for ipa cert-get-requestdata command
Closed: invalid a year ago by rcritten. Opened 3 years ago by sumenon.

Setup:

[root@intel ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 Beta (Maipo)
ipa-server-4.4.90-201703072305.el7.x86_64

Steps:
1. Install IPA Server
2. ipa help csrgen
3. Now run the below command without specifying Principal and Name of CSR generation tool.

ipa cert-get-requestdata

Actual Result:

[root@intel ~]# ipa cert-get-requestdata
Principal: 
Name of CSR generation tool: 
ipa: ERROR: non-public: AttributeError: 'NoneType' object has no attribute 'is_host'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 139, in execute
    result = self.Command[_name](*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 447, in __call__
    return self.__do_call(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 475, in __do_call
    ret = self.run(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 1199, in run
    return self.forward(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 1202, in forward
    return self.execute(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipaclient/plugins/csrgen.py", line 89, in execute
    if principal.is_host:
AttributeError: 'NoneType' object has no attribute 'is_host'
ipa: ERROR: an internal error has occurred

Expected Result:
Instead of throwing traceback, it should display proper message on the console.

e.g Principal Name Required or
Specify Name of CSR Generation Tool.


I would like to work on this issue. Can anyone assign this on my name ?

Metadata Update from @pvoborni:
- Issue assigned to akasurde

3 years ago

This API was hidden from CLI in 72de679

Metadata Update from @pvoborni:
- Issue close_status updated to: fixed
- Issue set to the milestone: FreeIPA 4.5
- Issue status updated to: Closed (was: Open)

3 years ago

Metadata Update from @akasurde:
- Issue set to the milestone: None (was: FreeIPA 4.5)

3 years ago

Reopening if PR 590 will address it.

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.5.1
- Issue status updated to: Open (was: Closed)

3 years ago

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.6 (was: FreeIPA 4.5.1)

3 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.1 (was: FreeIPA 4.6)

2 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.6.1)

2 years ago

Given that cert-get-requestdata is now not an available external API command this can probably be closed.

Metadata Update from @tdudlak:
- Issue set to the milestone: FreeIPA 4.6.3 (was: FreeIPA 4.6.2)

2 years ago

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.4 (was: FreeIPA 4.6.3)

2 years ago

FreeIPA 4.6.3 has been released, moving to FreeIPA 4.6.4 milestone

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.6.4)

2 years ago

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

a year ago

Login to comment on this ticket.

Metadata