Bug #29984
closedArray handled improperly, leading to ISE
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1813986
Description of problem:
Request with size_gb=<some_array> leads to ISE. Passing an array for this parameter is incorrect but ISE is not a correct response.
Version-Release number of selected component (if applicable):
Reproduced with Sat 6.7
How reproducible:
Deterministic
Steps to Reproduce:
1. # hammer host create --hostgroup testgrp --location-id 2 --organization-id 1 --name lhellebr-delme-convert10 --ip 192.168.122.86 --volume "size_gb=[20],wipe_after_delete=[bla],storage_domain=<UUID>"
Could not create the host:
Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
Actual results:
ISE
Expected results:
Meaningful error message, like "Incorrect value of argument 'size_gb'"
Additional info:
Traceback not useful but attached
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shira Maximov
- Pull request https://github.com/theforeman/foreman/pull/7873 added
Updated by Shira Maximov about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|21324ca84632a52d38858cbb81c7fa2a48fc8717.
Updated by The Foreman Bot almost 4 years ago
- Pull request https://github.com/theforeman/foreman/pull/7975 added