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
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)
@pvoborni PR is not merged, yet. https://github.com/freeipa/freeipa/pull/590
Metadata Update from @akasurde: - Issue set to the milestone: None (was: FreeIPA 4.5)
I am also waiting for https://github.com/freeipa/freeipa/pull/542 to get merged.
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)
Metadata Update from @pvoborni: - Issue set to the milestone: FreeIPA 4.6 (was: FreeIPA 4.5.1)
Metadata Update from @tkrizek: - Issue set to the milestone: FreeIPA 4.6.1 (was: FreeIPA 4.6)
Metadata Update from @tkrizek: - Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.6.1)
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)
Metadata Update from @rcritten: - Issue set to the milestone: FreeIPA 4.6.4 (was: FreeIPA 4.6.3)
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)
Metadata Update from @rcritten: - Issue close_status updated to: invalid - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.