Following Python API calls will trigger internal server error:
api.Command['batch']() api.Command['batch']([]) api.Command['batch']([1]) api.Command['batch']([{'method': 'host_add', 'params':{}}])
Interestingly,
api.Command['host_add']()
returns proper error:
RequirementError: 'hostname' is required
More reproducers:
api.Command['batch']([{'method': 'host_add', 'params': [None, {'hostname': 'host1001.test.'}]}])
Will be tried to be addressed in 4.4, measurement tells us that 1000x host-add in a batch command is 10x faster than in separate ipa host-add commands.
ipa host-add
Related ticket: #5821
attachment freeipa-frenaud-003-batch-command-can-be-used-to-trigger-internal-errors.patch
attachment freeipa-frenaud-0003-2-batch-command-can-be-used-to-trigger-internal-errors.patch
master:
Metadata Update from @pspacek: - Issue assigned to frenaud - Issue set to the milestone: FreeIPA 4.4
Login to comment on this ticket.