Bug 999339

Summary: Deleting a workspace does not remove all the workspace nodes
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: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 08:53:22 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-21 08:01:08 UTC
When removing a JCR workspace via workspace.remove(wsName) not only the workspace itself should be deleted, but also all the nodes below that workspace.

Currently if a workspace is deleted and then re-created with the same name, all its former nodes are still accessible. This should not happen.

Comment 1 JBoss JIRA Server 2013-08-22 14:27:01 UTC
K. Bachl <korbinian.bachl> made a comment on jira MODE-2009

Hello Horia, Hello Randall,

can you please also check the Workspace.clone() operations? It turns out that this also seems affected, as if I import a new workspace and then clone this into another workspace, the old content there isn't emptied correctly right before, leading to all kinds of stale data and JCR integrity exceptions (funny when you want to overwrite it...) or stale data returning as it seems some nodes then appear duplicate etc;

Comment 2 JBoss JIRA Server 2013-08-22 14:28:46 UTC
K. Bachl <korbinian.bachl> made a comment on jira MODE-2009

wrong field entered content - sorry;

Comment 3 Horia Chiorean 2013-08-23 07:22:24 UTC
Cherry-picked from community branch & fixed conflicts: https://github.com/jboss-integration/modeshape/commit/69b69582c8c13b2e2f9ff81e0b2a39a99cf5b049

Comment 8 belong 2013-11-19 23:15:46 UTC
Fixed before GA - setting to requires_doc_text- accordingly

Comment 9 Filip Nguyen 2014-02-12 10:42:34 UTC
Verified. After adding a new workspace with node and recreating the workspace, the nodes of the initial created workspace are no longer present.