Bug 1582873
Summary: | [Generic Object] Button added can cause exception page when clicked upon | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Tsai Li Ming <ltsai> | ||||||||||||||||||
Component: | Automate | Assignee: | drew uhlmann <duhlmann> | ||||||||||||||||||
Status: | CLOSED WORKSFORME | QA Contact: | Martin Kourim <mkourim> | ||||||||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||||||||
Priority: | medium | ||||||||||||||||||||
Version: | 5.9.0 | CC: | duhlmann, ltsai, mkanoor, mkourim, obarenbo, tfitzger | ||||||||||||||||||
Target Milestone: | GA | Keywords: | Reopened | ||||||||||||||||||
Target Release: | cfme-future | ||||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||
Whiteboard: | |||||||||||||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||
Last Closed: | 2018-07-24 12:09:52 UTC | Type: | Bug | ||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||
Verified Versions: | Category: | Bug | |||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||
Embargoed: | |||||||||||||||||||||
Attachments: |
|
Please assess the impact of this issue and update the severity accordingly. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition. If it's something like a tracker bug where it doesn't matter, please set the severity to Low. The exception page will occur in the following scenarios: 1. Create an Action button under the Generic Object (Automation -> Generic Object) - Go to Service -> Instance, view the details of an instance and click on the button. - The error will not happen if you are at the instance page, select an instance and click on the button. 2. Create a Button under Automation -> Customization -> Button, under the Generic Object. *** This bug has been marked as a duplicate of bug 1583764 *** This should not be a duplicate #1583764. I will update the title to reflect the Exception page. It'd be useful to have the dialog attached to this ticket, as well as any automation code running, please. Created attachment 1446739 [details]
Generic objects from service page
Created attachment 1446740 [details]
Generic Object link
Created attachment 1446741 [details]
Edit button on the generic object detail page
Created attachment 1446742 [details]
dialog form
1. A static dialog form with a single text box is sufficient to trigger the Exception page. 2. The error won't happen if the button has no dialog form. Thanks for the screenshots but I need the dialog and automate domain. Hey Tsai can I please have an update about this ticket? I would really like to have a dialog export and automate code, not just screenshots, so I can replicate this. May I please have a reproducer? I was not able to reproduce the issue. Steps: 1. create service POST /api/services { "name": "myservice01", "display": true } 2. create simple dialog with Text Box under Automation / Automate / Customization / Service Dialogs 3. create a generic object class POST /api/generic_object_definitions { "name": "myclass1", "description": "MyClass description" } 4. create instance of the class POST /api/generic_objects { "generic_object_definition": { "id": "1" }, "name":"go_name1" } 5. add instance to the service POST /api/services/1 { "action": "add_resource", "resource": { "resource": { "href": "https://<addr>/api/generic_objects/1" } } } 6. create an "Edit" button under Automation / Automate / Generic Objects / All Generic Objects Classes / myclass1 and assign the dialog created in step 2, set "System/Process" to "Request" and "Request" to "ansible_tower_job" 7. go to Services / My Services / myservice01, click on number "1" after "Instances", select the instance (see attached screenshot) 8. click on the "Edit" button, edit the text box (see attached screenshot) 9. click Submit, see "Order Request was Submitted" with no error message (see attached screenshot) Therefore this can be marked as "worksforme". Created attachment 1470278 [details]
mkourim-select_instance_and_click_button
Created attachment 1470279 [details]
mkourim-edit_dialog
Created attachment 1470280 [details]
mkourim-request_submitted
|
Created attachment 1442419 [details] error message Description of problem: 1. Created a Button that calls a Request, 'ansible_tower_job'. 2. Creates a Generic object that associate with a Service. 3. Go the new Service and instance of the Generic Object. Click on edit button. After filling up dialog form, page errors out with "Couldn't find Service with 'id'=1000000000030 [service/show]" 1000000000030 is the Generic Object ID, and not the Service id that it is associated with. There are no indications that the ansible tower job template is being called. Version-Release number of selected component (if applicable): Version 5.9.2.4.20180501195858_35dc609 How reproducible: Always