Bug 1729341
Summary: | Fatal error Couldn't find Service with id for DRO button | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Bryan Kinney <bkinney> | ||||||
Component: | Automate | Assignee: | Patrik Kománek <pkomanek> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | John Dupuy <jdupuy> | ||||||
Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | ||||||
Priority: | medium | ||||||||
Version: | 5.9.9 | CC: | dmetzger, gmccullo, hkataria, jdupuy, jocarter, mkanoor, nansari, nchugh, obarenbo, pkomanek, simaishi, tfitzger | ||||||
Target Milestone: | GA | Keywords: | Reopened, TestOnly, ZStream | ||||||
Target Release: | 5.11.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 5.11.0.21 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 1743266 (view as bug list) | Environment: | |||||||
Last Closed: | 2019-12-13 14:55:11 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | Bug | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | CFME Core | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1743266 | ||||||||
Attachments: |
|
Description
Bryan Kinney
2019-07-12 02:14:24 UTC
Correction to Description: * After hitting Submit in Generic Object with a Dialog(via generic object Button) it redirects into a URL where it uses the 'Generic Object ID' as the Service ID 5.10: https://cfme.example.com/service/show/301000000000163?display=generic_objects #301000000000163 is a Generic Object ID and not the Service Id. Not the api URL given. Created attachment 1589776 [details]
Dialog POST and service page GET
Show in the production.log where the Dialog POST is received properly.
Then the next GET for the service page is using the wrong ID.
Would a Hotfix for engine version 5.10.6 be possible? The fixed version mentioned, 5.10.9, is a minor update from this. That version 5.10.9 probably won't be available until September? I was unable to reproduce this in CFME 5.10.8.0 Can you test 5.10.7 which is currently available. The known working version based on comment #5 (5.10.8) is scheduled for GA August 13th. Hello Team, I have tested for 5.10.8 version and issue still persist. Below steps I have followed to reproduce this issue: 1. I have associated one generic object instance with id 1 with service object with id 2. 2. I have created custom button for generic objects and added dialog in it. 3. Now, I navigated to Service so to execute the button, once I click the button and after submitting the dialog, the url got changed and it navigates to the service with id 1 which was the generic object ID. Though it executes the method associated with the button but after button submission, it shows the service page of Id which generic object belongs to. I will also share a video which will show the issue, meanwhile I am sharing this test appliance for your reference purpose: 10.8.198.152, please login with default credentials. Thanks and Regards, Neha Chugh Created attachment 1603692 [details]
Video to show after button execution it routes to the service show with id which generic object belongs to.
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/8b0e5ac432d32a32999b3b3de4ce52d2c1353bd4 commit 8b0e5ac432d32a32999b3b3de4ce52d2c1353bd4 Author: Harpreet Kataria <hkataria> AuthorDate: Fri Aug 16 16:57:54 2019 -0400 Commit: Harpreet Kataria <hkataria> CommitDate: Fri Aug 16 16:57:54 2019 -0400 Fixed API endpoint for GO object custom button dialogs. Need to pass in correct parent record id and generic_object id to build endpoint url correctly when pressing a GO custom button from list view or details view. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729341 app/controllers/service_controller.rb | 3 +- app/services/dialog_local_service.rb | 5 +- 2 files changed, 5 insertions(+), 3 deletions(-) New commit detected on ManageIQ/manageiq-ui-classic/ivanchuk: https://github.com/ManageIQ/manageiq-ui-classic/commit/8a9d219923eb17d214c0062af83052f83200219e commit 8a9d219923eb17d214c0062af83052f83200219e Author: Martin Hradil <mhradil> AuthorDate: Mon Aug 19 09:25:27 2019 -0400 Commit: Martin Hradil <mhradil> CommitDate: Mon Aug 19 09:25:27 2019 -0400 Merge pull request #6052 from h-kataria/fix_api_endpoint_for_go_custom_buttons Fixed API endpoint for GO object custom button dialogs. (cherry picked from commit f817e80391785e5fb3f050576e9b4246909d6398) https://bugzilla.redhat.com/show_bug.cgi?id=1729341 app/controllers/service_controller.rb | 3 +- app/services/dialog_local_service.rb | 5 +- 2 files changed, 5 insertions(+), 3 deletions(-) Verified in CFME 5.11.0.21 |