Bug 1010855

Summary: session-migration: User and Group table records are not compatible.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marek Baluch <mbaluch>
Component: jBPM CoreAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0   
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:06:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marek Baluch 2013-09-23 08:23:25 UTC
Description of problem:

The OrganizationalEntity table has two cols. First being the DTYPE and the second the ID.

DTYPE in jbpm5 may contain the 'User' and 'Group' strings to identify the type. DTYPE in jbpm6 on the other hand contains 'GroupImpl' and 'UserImpl' strings. I'm not sure at this point weather there are other organizational entities stored in the table but if they are they will be probably affected too.

This discrepancy leads to records not being found and then there's another attempt made to store a record with a ID which is already present (e.g. AbstractUserGroupCallbackDecorator.addUserFromCallbackOperation(String))

Comment 1 Maciej Swiderski 2013-09-24 16:47:30 UTC
made UserImpl and GroupImpl backward compatible so now the discriminator values are same as in v5.

master:
https://github.com/droolsjbpm/jbpm/commit/fe15e0e3d2987f6fcaa76fe5939110501cbd64e4

6.0.x
https://github.com/droolsjbpm/jbpm/commit/bb6416db387c7b017e5b7e7a5b174c31510495b2

Comment 2 Marek Baluch 2013-10-18 10:48:16 UTC
Verified on ER4.