Bug 1650085

Summary: 400 Bad Request displayed when trying to create button with same description on generic object class
Product: Red Hat CloudForms Management Engine Reporter: Niyaz Akhtar Ansari <nansari>
Component: UI - OPSAssignee: Zita Nemeckova <znemecko>
Status: CLOSED CURRENTRELEASE QA Contact: John Dupuy <jdupuy>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: bmidwood, dgaikwad, dmetzger, hkataria, lavenel, mfeifer, mnadeem, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1686018 (view as bug list) Environment:
Last Closed: 2019-12-13 15:08:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686018    
Attachments:
Description Flags
Error none

Description Niyaz Akhtar Ansari 2018-11-15 10:34:58 UTC
Created attachment 1506018 [details]
Error

Description of problem:


Version-Release number of selected component (if applicable):
Version 5.10.0.24.20181113213923_03b81fd


How reproducible:
100%

Steps to Reproduce:
1.Go to automation->Automate->Generic Objects
2.Create Generic Objects Class
3.Add New button
4.Add one more button with same name

Actual results:
Error occurs while adding button with same name in generic object class page

Expected results:
It should display duplicate name validation message 

Additional info:

Comment 5 CFME Bot 2018-12-11 14:26:30 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/55d7178afa14f8fa3c9ca5b7e8dab7b1a532e8f0
commit 55d7178afa14f8fa3c9ca5b7e8dab7b1a532e8f0
Author:     Zita Nemeckova <znemecko>
AuthorDate: Wed Nov 21 04:07:29 2018 -0500
Commit:     Zita Nemeckova <znemecko>
CommitDate: Wed Nov 21 04:07:29 2018 -0500

    Catch 400 error and display it in flash message instead of modal with API error

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650085

 app/assets/javascripts/components/generic_object/main-custom-button-form-component.js | 25 +-
 1 file changed, 23 insertions(+), 2 deletions(-)