[DOCU-1543] Recipe to remove a JCR workspace manually Created: 11/Jun/18  Updated: 28/Jun/18  Resolved: 27/Jun/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 5.7

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Sprint: Docu Sprint 53
Story Points: 2

 Description   

With Magnolia 5.7 we stop creating the (longtime outdated) workspace dms.
It means: A fresh installation of Magnolia 5.7+ won't install the dms ws anymore,
but
We must provide a recipe how customers can remove the dms workspace manually on installations which has just been upgraded to Magnolia 5.7+ -.
Ideally we can provide a groovy script which operates on the JCR API to delete the workspace independent from the underlying DB which acts as the persistence layer.

The recipe should work to delete any JCR workspace.



 Comments   
Comment by Christoph Meier [ 26/Jun/18 ]

The JCR API provides a ethod to delete a workspace.
=> javax.jcr.Workspace#deleteWorkspace(workspaceName)

However, jackrabbit has not implemented this method when looking at org.apache.jackrabbit.core.WorkspaceImpl.
Also http://jackrabbit.apache.org/jcr/frequently-asked-questions.html mentions:

There is currently no programmatic way to delete workspaces. You can delete a workspace by manually removing the workspace directory when the repository instance is not running.

This said - I see no way to remove a workspace with a groovie script.
Which makes it much harder to provide a recipe, because now we may must provide different solutions for different underlying DBs (under the hood of jackrabbit).

Comment by Christoph Meier [ 26/Jun/18 ]

Stalled for the time being. 

Comment by Christoph Meier [ 27/Jun/18 ]

Result: https://documentation.magnolia-cms.com/display/DOCS57/How+to+delete+a+JCR+workspace

Comment by Christoph Meier [ 27/Jun/18 ]

Mika did a quick review.

Comment by Julie Legendre [ 28/Jun/18 ]

reviewed

Comment by Christoph Meier [ 28/Jun/18 ]

Page is a child of "Administration" within the TOC.
Added a link to this new page from 5.7 Release notes page.

Generated at Mon Feb 12 01:19:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.