#6061 ipa trustconfig-show throws internal error.
Closed: Fixed None Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1354348

Description of problem: ipa trustconfig-show throws internal error.

Version-Release number of selected component (if applicable):
ipa-server-trust-ad-4.4.0-1.el7.x86_64
ipa-server-4.4.0-1.el7.x86_64

How reproducible: Always

Steps to Reproduce:
1. Install ipa-server
2. run ipa-adtrust-install
3. run ipa trustconfig-show
4. Check the message displayed on the console.

Actual results:
[root@server ~]# ipa trustconfig-show
ipa: ERROR: non-public: TypeError: trustconfig_show.validate_output():
  output['value']: need (<type 'NoneType'>,); got <type 'unicode'>: u'ad'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 137, 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 486, in
__do_call
    self.validate_output(ret, options['version'])
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 993, in
validate_output
    nice, o.name, o.type, type(value), value)
TypeError: trustconfig_show.validate_output():
  output['value']: need (<type 'NoneType'>,); got <type 'unicode'>: u'ad'
ipa: ERROR: an internal error has occurred


Expected results:
Proper error message should be displayed.

Additional info:

This issue has the same root cause as #6037

master:

  • f0a6154 allow 'value' output param in commands without primary key

Metadata Update from @pvoborni:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.

Metadata