Bug 1002587

Summary: Cloning workspaces does not update reference properties
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Horia Chiorean <hchiorea>
Component: ModeShapeAssignee: Horia Chiorean <hchiorea>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, fnguyen, vhalbert
Target Milestone: ER2Keywords: QA-Closed
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 08:57:15 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:
Embargoed:

Description Horia Chiorean 2013-08-29 13:42:41 UTC
When cloning a source workspace into a target workspace, the nodes from the target workspace should have their reference properties updated to point towards the nodes from the target workspace.

At the moment this is not happening, causing a potential ReferentialIntegrityException.

Comment 1 JBoss JIRA Server 2013-08-29 14:04:09 UTC
Horia Chiorean <hchiorea> made a comment on jira MODE-2012

Attached a PR which fixes the cloning of reference properties across workspaces.
This PR contains the test case from https://github.com/ModeShape/modeshape/pull/922.

Comment 2 JBoss JIRA Server 2013-08-29 16:31:00 UTC
Randall Hauch <rhauch> made a comment on jira MODE-2012

Merged [~hchiorean]'s latest pull-request, which fixes the underlying problem and adds several new smaller test cases to verify the functionality.

Much thanks to [~kbachl] and [~hchiorean] for all their hard work on this!

Comment 4 JBoss JIRA Server 2013-08-29 22:49:41 UTC
K. Bachl <korbinian.bachl> made a comment on jira MODE-2012

Ok, I gave the fix a quick testdrive and so far all seems very very nice. I don't have anymore the referential exceptions, and the content from workspace A in clone B and C doesnt show up anymore. Beside, I now get the same size workspace.xml file when I import + export the content afterwards. I also noticed that the cachestore-datafiles doesnt seem to grow that fast anymore now. After some import/ export + cloning the current berkeley DB solution I use ends up using about 27,3 MB space what is about to expect as a workspace.xml of 1 workspace has about 8.3 MB, so it's a reasonable size (external files are only 725KB as I mostly have small bits in the workspace);

So far: Thank you for the awesome job at fixing this so fast (I've seen the pull-request: thumbs up on you Horia!). 
I'm really looking forward to ModeShape 3.5 now!

Comment 10 JBoss JIRA Server 2013-10-24 09:23:31 UTC
Randall Hauch <rhauch> updated the status of jira MODE-2012 to Closed

Comment 11 belong 2013-11-19 23:16:58 UTC
Fixed before GA - setting to requires_doc_text- accordingly