Bug 1283732 - Empty Text Box in service dialog causes error
Summary: Empty Text Box in service dialog causes error
Keywords:
Status: CLOSED DUPLICATE of bug 1283734
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.5.0
Assignee: Dan Clarizio
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-19 16:56 UTC by Pete Savage
Modified: 2015-11-20 13:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-20 13:14:41 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pete Savage 2015-11-19 16:56:03 UTC
Description of problem: Empty Text Box in service dialog causes error


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


How reproducible: 100%


Steps to Reproduce:
1. Create a custom dialog for servicing with a single element, (Text Box)
2. Leave everything as default, so it is not required and has a default value of nothing.
3. Run a catalog provision using the dialog

Actual results: The provision fails, complaining it can't convert nil to String


Expected results: nil should be able to be converted to a String since the field is not required and the default can be blank.



Additional info:
[----] I, [2015-11-19T11:48:27.213802 #2938:7ef35d8]  INFO -- : Q-task_id([service_template_provision_task_23]) <AutomationEngine> <AEMethod dialog_parser> dialog_options: {"dialog_test"=>"", "request"=>"clone_to_service"}
[----] I, [2015-11-19T11:48:27.217110 #2938:7ef35d8]  INFO -- : Q-task_id([service_template_provision_task_23]) <AutomationEngine> <AEMethod dialog_parser> Current task has empty dialogs, getting dialog information from parent task
[----] E, [2015-11-19T11:48:27.219171 #2938:7ef35d8] ERROR -- : Q-task_id([service_template_provision_task_23]) <AutomationEngine> <AEMethod dialog_parser> The following error occurred during method evaluation:
[----] E, [2015-11-19T11:48:27.220432 #2938:7ef35d8] ERROR -- : Q-task_id([service_template_provision_task_23]) <AutomationEngine> <AEMethod dialog_parser>   TypeError: no implicit conversion of nil into String
[----] E, [2015-11-19T11:48:27.222479 #2938:7ef35d8] ERROR -- : Q-task_id([service_template_provision_task_23]) <AutomationEngine> <AEMethod dialog_parser>   /opt/rh/rh-ruby22/root/usr/share/gems/gems/psych-2.0.13/lib/psych.rb:370:in `parse'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/psych-2.0.13/lib/psych.rb:370:in `parse_stream'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/psych-2.0.13/lib/psych.rb:318:in `parse'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/psych-2.0.13/lib/psych.rb:245:in `load'
<code: options_hash = YAML.load(bundle_task.get_option(:parsed_dialog_options))>:107:in `parent_task_dialog_information'

Comment 2 Pete Savage 2015-11-20 13:14:41 UTC

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


Note You need to log in before you can comment on or make changes to this bug.