#5810 batch command can be used to trigger internal errors on server
Closed: Fixed None Opened 8 years ago by pspacek.

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.

Related ticket: #5821

master:

  • 2c7ec27 batch command can be used to trigger internal errors on server

Metadata Update from @pspacek:
- Issue assigned to frenaud
- Issue set to the milestone: FreeIPA 4.4

7 years ago

Login to comment on this ticket.

Metadata