Bug 1246693 - Service dialog : Adding a service dialog of "Drop down list " type without adding entries shows error
Summary: Service dialog : Adding a service dialog of "Drop down list " type without ad...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.5.0
Assignee: Dávid Halász
QA Contact: Aziza Karol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-24 22:50 UTC by Shveta
Modified: 2015-12-08 13:24 UTC (History)
7 users (show)

Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-08 13:24:01 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
err (78.14 KB, image/png)
2015-07-24 22:50 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 0 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 17:58:09 UTC

Description Shveta 2015-07-24 22:50:10 UTC
Created attachment 1055896 [details]
err

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Create a service dialog of type "drop down list "
2. Enter some data in Entries table in Value and description and Save (without adding the entry)
3. See error

Actual results:


Expected results:


Additional info:
EVM log
=======================
[----] E, [2015-07-24T18:47:12.530133 #2449:74bea4] ERROR -- : MIQ(miq_ae_customization_controller-dialog_edit): undefined method `first' for nil:NilClass
[----] I, [2015-07-24T18:47:15.916764 #2445:95be9c]  INFO -- : MIQ(ScheduleWorker.do_work) Number of scheduled items to be processed: 1.
[----] I, [2015-07-24T18:47:15.937568 #2445:95be9c]  INFO -- : MIQ(MiqQueue.put)        Message id: [126776],  id: [], Zone: [default], Role: [smartstate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [job_dispatcher], Command: [JobProxyDispatcher.dispatch], Timeout: [600], Priority: [20], State: [ready], Deliver On: [], Data: [], Args: []
[----] I, [2015-07-24T18:47:17.891641 #2196:963ea8]  INFO -- : MIQ(MiqServer.populate_queue_messages) Fetched 1 miq_queue rows for queue_name=generic, wcount=4, priority=200
[----] I, [2015-07-24T18:47:17.895734 #2196:963ea8]  INFO -- : MIQ(MiqServer.monitor_loop) Server Monitoring Complete - Timings: {:server_dequeue=>0.0031731128692626953, :worker_monitor=>1.3615233898162842, :worker_dequeue=>0.007665395736694336, :total_time=>1.3727595806121826}
[----] I, [2015-07-24T18:47:17.978537 #2434:949ea4]  INFO -- : MIQ(MiqQueue.get_via_drb) Message id: [126776], MiqWorker id: [50], Zone: [default], Role: [smartstate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [job_dispatcher], Command: [JobProxyDispatcher.dispatch], Timeout: [600], Priority: [20], State: [dequeue], Deliver On: [], Data: [], Args: [], Dequeued in: [2.058480673] seconds
[----] I, [2015-07-24T18:47:17.978665 #2434:949ea4]  INFO -- : Q-task_id([job_dispatcher]) MIQ(MiqQueue.deliver)    Message id: [126776], Delivering...
[----] I, [2015-07-24T18:47:17.980363 #2434:949ea4]  INFO -- : Q-task_id([job_dispatcher]) MIQ(JobProxyDispatcher-dispatch) Complete - Timings: {:pending_jobs=>0.00046181678771972656, :jobs_to_dispatch_count=>0, :total_time=>0.0014066696166992188}
[----] I, [2015-07-24T18:47:17.980585 #2434:949ea4]  INFO -- : Q-task_id([job_dispatcher]) MIQ(MiqQueue.delivered)  Message id: [126776], State: [ok], Delivered in [0.001915312] seconds

Comment 3 Shveta 2015-07-31 18:12:36 UTC
Issue can be recreated at https://10.16.5.87.
Select Drop down list in the element and save without adding any entries

Comment 5 CFME Bot 2015-08-22 04:41:39 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 6 CFME Bot 2015-08-22 04:47:20 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 7 CFME Bot 2015-08-22 04:53:25 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 8 CFME Bot 2015-08-22 05:00:12 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 9 CFME Bot 2015-08-22 05:15:23 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 10 CFME Bot 2015-08-22 06:06:13 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 11 CFME Bot 2015-08-22 06:09:06 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 12 CFME Bot 2015-08-22 06:26:41 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 13 CFME Bot 2015-08-22 06:38:37 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 14 CFME Bot 2015-08-22 06:51:54 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 15 CFME Bot 2015-08-22 07:04:32 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4

commit 6b0a8870838971ccb2fe0c4eb4455abf2f9fe0b4
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Aug 3 10:07:00 2015 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Aug 21 12:07:41 2015 +0200

    Raise error when a newly created dialog dropdown has no entries
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246693

 app/controllers/miq_ae_customization_controller/dialogs.rb  |  4 ++++
 .../miq_ae_customization_controller/dialogs_spec.rb         | 13 +++++++++++++
 2 files changed, 17 insertions(+)

Comment 16 Shveta 2015-09-01 01:04:17 UTC
Verified on upstream master.20150831201655_178618c

Comment 17 Aziza Karol 2015-10-01 11:08:19 UTC
Flash message "Dropdown elements require some entries" displayed in UI

Verified in 5.5.0.3-alpha1.2.20150929172214_2eda7b4

Comment 19 errata-xmlrpc 2015-12-08 13:24:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551


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