Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1513117

Summary: wrong type value in orchestration_templates create request results in internal server error
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: Jillian Tullo <jtullo>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Kourim <mkourim>
Severity: medium Docs Contact:
Priority: high    
Version: 5.9.0CC: jhardy, obarenbo
Target Milestone: GAKeywords: Regression
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: api:rest
Fixed In Version: 5.9.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1510215 Environment:
Last Closed: 2018-03-06 15:09:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1510215    
Bug Blocks:    

Comment 3 CFME Bot 2017-11-29 20:48:41 UTC
New commit detected on ManageIQ/manageiq-api/gaprindashvili:
https://github.com/ManageIQ/manageiq-api/commit/2450b78c6289f37b352284de05c951affef19dca

commit 2450b78c6289f37b352284de05c951affef19dca
Author:     Chris Arcand <chrisarcand@users.noreply.github.com>
AuthorDate: Fri Nov 10 11:58:55 2017 -0600
Commit:     Satoe Imaishi <simaishi@redhat.com>
CommitDate: Tue Nov 14 17:41:56 2017 -0500

    Merge pull request #195 from jntullo/bz/graceful_fail_on_delete
    
    Gracefully fail on resource create
    (cherry picked from commit 48128388cf0b47089c15c90e8caea65326b67b0e)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1513117

 app/controllers/api/base_controller/generic.rb |  7 +++++++
 spec/requests/orchestration_template_spec.rb   | 15 +++++++++++++++
 2 files changed, 22 insertions(+)

Comment 4 Martin Kourim 2017-12-04 11:07:28 UTC
Verified that wrong value of a "type" attribute in the orchestration_templates create request results in graceful fail with status code 400 on 5.9.0.11