Bug 977782 - Incorrect error message is shown when creating a new dynaGroup definition with incorrect name
Summary: Incorrect error message is shown when creating a new dynaGroup definition wit...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: RHQ 4.9
Assignee: Jirka Kremser
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-25 10:22 UTC by Filip Brychta
Modified: 2013-09-24 19:08 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-24 19:08:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Filip Brychta 2013-06-25 10:22:10 UTC
Description of problem:
I'm creating a new dynaGroup definition with name containing forbidden characters and thrown error message shows 'A group definition already exists with this name'

Version-Release number of selected component (if applicable):
Version: 4.8.0-SNAPSHOT
Build Number: df51a76

How reproducible:
Always

Steps to Reproduce:
1. delete all group definitions and all groups
2. try to create a new dynagroup definition with following name: test<> and expression: test 
3. click on save button

Actual results:
error message shows 'A group definition already exists with this name'
with exception: >> exception was null <<

rhq server log contains correct exception:
06:17:30,901 WARN  [org.rhq.enterprise.gui.coregui.server.gwt.ResourceGroupGWTServiceImpl] (http-/0.0.0.0:7080-31) Sending exception to client: [1372155450901] : org.rhq.enterprise.server.resource.group.definition.exception.GroupDefinitionCreateException: Name must not contain <,$,',[,{ characters


Expected results:
Correct error message

Comment 1 Jirka Kremser 2013-07-10 14:45:36 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=b6c3be047
time:    2013-07-10 16:44:00 +0200
commit:  b6c3be047e66dee516acbd3c557eb2da2806aa11
author:  Jirka Kremser - jkremser
message: [BZ 977782] - Incorrect error message is shown when creating a new
         dynaGroup definition with incorrect name - added regexp
         validator to the coregui.

Comment 2 Jirka Kremser 2013-07-10 14:46:42 UTC
this is RHQ bz => changing status to ON_QA

Comment 3 Filip Brychta 2013-08-26 08:02:53 UTC
Verified on 
Version: 4.9.0-SNAPSHOT
Build Number: d428376

Comment 4 Heiko W. Rupp 2013-09-24 19:08:34 UTC
Bulk closing of RHQ 4.9 verified items


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