Bug 1623912 - No error message when creating duplicate zone in the same region
Summary: No error message when creating duplicate zone in the same region
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.10.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.10.0
Assignee: Richard Vsiansky
QA Contact: Angelina Vasileva
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-30 12:30 UTC by Angelina Vasileva
Modified: 2019-02-12 16:51 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.15
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-12 16:51:15 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error is displayed in 5.9 (32.16 KB, image/png)
2018-08-30 12:30 UTC, Angelina Vasileva
no flags Details

Description Angelina Vasileva 2018-08-30 12:30:48 UTC
Created attachment 1479793 [details]
error is displayed in 5.9

Description of problem:
No error message when creating duplicate zone in the same region

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

How reproducible:
always

Steps to Reproduce:
1. Go to Administrator | EVM -> Configuration
2. Select in the left panel Settings -> Zones (under one Region)
3. Click Configuration -> Add a new Zone
4. Fill the fields Name and Description, click Add. Zone is added
5. Again Click Configuration -> Add a new Zone (under the same Region)
6. Fill the fields Name and Description with the same values as in step 4,
   click Add

Actual results:
No error message is displayed. Nothing happens upon pressing Add button.

Expected results:
Error message "Name is not unique within region <name of the region>"

Additional info:
The error message is correctly displayed in 5.9.4.7.20180829201904_ced41ae.

Comment 3 Angelina Vasileva 2018-08-30 14:05:07 UTC
I think it is the same issue for the following.

1. There's no error message when trying to add zone with empty name.
Should be "Name can't be blank".

2. There's no error message when trying to add zone with empty description.
Should be "Description is required".

Both messages are displayed correctly in 5.9.

Comment 6 CFME Bot 2018-09-04 17:32:29 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/b3de8663b142e5e3446c2bc1f9e05b17e446a13b
commit b3de8663b142e5e3446c2bc1f9e05b17e446a13b
Author:     Richard Vsiansky <r.vsia>
AuthorDate: Mon Sep  3 05:43:32 2018 -0400
Commit:     Richard Vsiansky <r.vsia>
CommitDate: Mon Sep  3 05:43:32 2018 -0400

    Add flash_msg_div if adding a new zone

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1623912

 app/controllers/ops_controller.rb | 1 +
 app/views/ops/_zone_form.html.haml | 5 +-
 spec/views/ops/_zone_form.html.haml_spec.rb | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

Comment 7 Angelina Vasileva 2018-09-17 08:57:59 UTC
Verified on 5.10.0.15.20180914163601_fb02d7e


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