Branch: refs/heads/master
Home:
https://github.com/rhq-project/rhq
Commit: 08075f8f5693853183b6f00a937c20bcb3575cfb
https://github.com/rhq-project/rhq/commit/08075f8f5693853183b6f00a937c20b...
Author: Jay Shaughnessy <jshaughn(a)redhat.com>
Date: 2015-12-02 (Wed, 02 Dec 2015)
Changed paths:
M
modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/group/definition/GroupDefinitionManagerBean.java
Log Message:
-----------
BZ 1187680 : Error recalculating DynaGroups due to ResourceGroupAlreadyExistsException
In a rare case a groupBy expression can generates multiple groupByClause strings
differing
only in case. Group names are [correctly] case insensitive and groupBy [correctly] is not.
For example
'groupby resource.name' can cause this issue with two resources with the same
name, ignoring case, like
'CPU' and 'cpu'. In this situation we need to consolidate results into
one dyna-group, otherwise
we'll get naming conflicts in the generated groups. So, merge results where the
groupByClause is equal,
ignoring case.