Bug 1717971

Summary: Dynamic Dialog Refresh Sends Nil Value to dialog_parser Automate Method
Product: Red Hat CloudForms Management Engine Reporter: myoder
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED DUPLICATE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.4CC: dmetzger, gmccullo, mkanoor, obarenbo
Target Milestone: GA   
Target Release: 5.10.7   
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: 2019-06-07 14:12:45 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:

Description myoder 2019-06-06 14:45:42 UTC
Description of problem:

When clicking the refresh button on a dynamic dialog, the value appears to load fine in the UI, however the value is never accepted, and is showing as nil in the dialog_parser method:

[----] I, [2019-06-06T10:36:37.149619 #20839:d1f128]  INFO -- : Q-task_id([r1000000000010_service_template_provision_task_1000000000010]) <AEMethod dialog_parser> dialog_options: {"dialog_dummy_text_box_1"=>nil, "dialog_dummy_text_box_2"=>"No worries Mate!", "request"=>"clone_to_service", :service_action=>"Provision", "Service::Service"=>1000000000010}

Above there are 2 dynamic dialogs, both with the exact same setup and automate method populating the values.  "dialog_dummy_text_box_1" was refreshed, and shows the value nil, while "dialog_dummy_text_box_2" was not refreshed, and shows the "No worries Mate!" value.  Note, these 2 dialogs have "Load on Init" enabled.  I tried it with "Load on Init" disabled, and we still see the refresh is sending a nil value for "dialog_dummy_text_box_1":

[----] I, [2019-06-06T10:39:53.889073 #20847:640ea9c]  INFO -- : Q-task_id([r1000000000011_service_template_provision_task_1000000000011]) <AEMethod dialog_parser> dialog_options: {"dialog_dummy_text_box_1"=>nil, "dialog_dummy_text_box_2"=>"", "request"=>"clone_to_service", :service_action=>"Provision", "Service::Service"=>1000000000011}


Version-Release number of selected component (if applicable):
CFME 5.10.4

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Reproducer on 10.13.153.122 with default credentials.  The service dialog is "dummy_dialog" and is used in the generic catalog "generic_dummy".

Comment 2 Tina Fitzgerald 2019-06-06 16:24:45 UTC
Hi Yoder,

I believe this issue has already been addressed.

Can you apply the hot fix and verify that it works properly:
https://bugzilla.redhat.com/show_bug.cgi?id=1710610#c7

Thanks,
Tina

Comment 3 myoder 2019-06-07 14:11:31 UTC
Hey Tina,

Yep, that was perfect, thanks.  Closing as dupe of 1710610.

Cheers,

Comment 4 myoder 2019-06-07 14:12:45 UTC

*** This bug has been marked as a duplicate of bug 1710610 ***