Bug 1010855 - session-migration: User and Group table records are not compatible.
Summary: session-migration: User and Group table records are not compatible.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER4
: 6.0.0
Assignee: Maciej Swiderski
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-23 08:23 UTC by Marek Baluch
Modified: 2014-08-06 20:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:06:36 UTC
Type: Bug


Attachments (Terms of Use)

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.


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