[
https://jira.jboss.org/jira/browse/JBPM-2583?page=com.atlassian.jira.plug...
]
Tom Baeyens commented on JBPM-2583:
-----------------------------------
for our info:
public String createGroup(String groupName, String groupType, String parentGroupId) {
GroupImpl group = new GroupImpl();
String groupId = groupType != null ? groupType + "." + groupName :
groupName;
group.setId(groupId);
long dbid = EnvironmentImpl.getFromCurrent(DbidGenerator.class).getNextId();
group.setDbid(dbid);
IdentityService createGroup creates duplicate groups
----------------------------------------------------
Key: JBPM-2583
URL:
https://jira.jboss.org/jira/browse/JBPM-2583
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.1
Environment: JDK 1.6, mysql 5
Reporter: Robert Moskal
Priority: Minor
Fix For: jBPM 4.x
Repeatedly calling createGroup with the same group name causes very similar records to be
entered into the JBPM_ID_GROUP table. They differ only bythe DBID_ field value. Here is
an example of what I found in the database.
17 0 another another (null) (null)
18 0 another another (null) (null)
19 0 another another (null) (null)
20 0 another another (null) (null)
21 0 another another (null) (null)
Retrievals don't result in duplicates, but this seems like it might cause problems.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira