Bug 999339 - Deleting a workspace does not remove all the workspace nodes
Summary: Deleting a workspace does not remove all the workspace nodes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: ModeShape
Version: 6.0.0
Hardware: x86_64
OS: All
unspecified
unspecified
Target Milestone: ER2
: 6.0
Assignee: Horia Chiorean
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 08:01 UTC by Horia Chiorean
Modified: 2016-02-10 08:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-02-10 08:53:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-2009 0 Blocker Closed Delete workspace should also delete child nodes permanently 2014-02-12 10:42:41 UTC

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.


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