On 10.5.2016 12:48, Martin Basti wrote:
> 
> 
> On 06.05.2016 15:09, Petr Viktorin wrote:
>> Hi,
>> With these patches, xmlrpc_tests pass for me (except those that fail on
>> py2, and, if python3-ipaserver is installed, some in permission that use
>> ldap2 plugin).
>>
>>
>>
>>
>>
> ACK
> 
> master:
> * a9a13530988c616b331545ea02f539d39df64e27 Fix remaining relative import and
> enable Pylint check
> * 5dbb0f6fec59defd795dd501b67740a79616e86b ipalib.cli: Improve reporting of
> binary values in the CLI
> * 7d4d819b90f23cffbe437566818e29c394800b9e test_cert_plugin: Encode
> 'certificate' for comparison with 'usercertificate'
> 
> ipa-4-3:
> * 2c5b29fe9247ee4b96c63406499ea40ed8e968cf Fix remaining relative import and
> enable Pylint check
> * 39132fd1f3a9798957e8c96529bc235ed14c5db3 ipalib.cli: Improve reporting of
> binary values in the CLI
> * 0ebbb48dc4cf0b9df78363f6a683c388634c595f test_cert_plugin: Encode
> 'certificate' for comparison with 'usercertificate'

Hi,

even with very latest patches (5c58751d72de27eae2181f2c0e620df03f8dbc82) the
permission system is somehow broken:

# ipa privilege-add-permission loc --permission='System: Show IPA Locations'

  Privilege name: loc
  Permissions: System: Modify IPA Locations
  Granting privilege to roles: loc
  Failed members:
ipa: ERROR: TypeError: sequence item 0: expected str instance, bytes found
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/ipalib/cli.py", line 1348, in run
    sys.exit(api.Backend.cli.run(argv))
  File "/usr/lib/python3.5/site-packages/ipalib/cli.py", line 1111, in run
    rv = cmd.output_for_cli(self.api.Backend.textui, result, *args, **options)
  File "/usr/lib/python3.5/site-packages/ipalib/frontend.py", line 1074, in
output_for_cli
    textui.print_entry(result, order, labels, flags, print_all)
  File "/usr/lib/python3.5/site-packages/ipalib/cli.py", line 391, in 
print_entry
    indent=indent+1
  File "/usr/lib/python3.5/site-packages/ipalib/cli.py", line 402, in 
print_entry
    label, value, format, indent, one_value_per_line
  File "/usr/lib/python3.5/site-packages/ipalib/cli.py", line 306, in
print_attribute
    text = ': '.join(l)
TypeError: sequence item 0: expected str instance, bytes found
ipa: ERROR: an internal error has occurred

-- 
Petr^2 Spacek

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to