Project

General

Profile

Actions

Bug #29984

closed

Array handled improperly, leading to ISE

Added by Shira Maximov about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - oVirt
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases 2.3.0 added
Actions #3

Updated by Shira Maximov about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added
Actions

Also available in: Atom PDF