Bug 1443691

Summary: Error when executing a button assigned to a button group
Product: Red Hat CloudForms Management Engine Reporter: Shveta <sshveta>
Component: APIAssignee: Tim Wade <twade>
Status: CLOSED CURRENTRELEASE QA Contact: Yadnyawalk Tale <ytale>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, dclarizi, jhardy, obarenbo, simaishi, twade
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ssui
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1452333 (view as bug list) Environment:
Last Closed: 2018-03-06 15:16:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1452333    
Attachments:
Description Flags
errr
none
working_on_5.9.0.4.mp4 none

Description Shveta 2017-04-19 18:24:09 UTC
Created attachment 1272702 [details]
errr

Description of problem:


Version-Release number of selected component (if applicable):
5.8.0.11-beta2.20170418170914_a53d2a7

How reproducible:


Steps to Reproduce:
1. In OPS UI create a dialog (Automate - Customization)
2. Automate - Customization - Button - create a button group and a button under it .
3. in SUI , click on the service and execute the button . Shows error "Error submitting request"

Actual results:


Expected results:


Additional info:

Comment 2 Josh Langholtz 2017-04-20 15:50:05 UTC
Specifically, this error occurs for custom actions that belong to a generic custom button set. The SUI makes a request to the services endpoint for the custom_actions attribute and uses the buttons and button_groups properties to render the custom action buttons.

When the action is invoked, the API will correctly process the custom action if it unassigned (does not belong to a custom button set), however, if the same custom action is assigned to a generic custom button set, the exception will be raised.

The error message from the API is:

{"error":{"kind":"bad_request","message":"Unsupported Custom Action <custom action name> for the services resource specified","klass":"Api::BadRequestError"}}

Comment 4 Tim Wade 2017-04-22 19:22:59 UTC
*** Bug 1441851 has been marked as a duplicate of this bug. ***

Comment 5 Satoe Imaishi 2017-05-18 17:43:28 UTC
PR: https://github.com/ManageIQ/manageiq/pull/14845

Comment 7 Yadnyawalk Tale 2017-11-08 09:51:59 UTC
Created attachment 1349356 [details]
working_on_5.9.0.4.mp4

Working fine with this fix.
Verified on: 5.9.0.4.20171024163837_ef71ea6