Affects Version/s: None
Fix Version/s: None
the implementation of Workspace.createWorkspace(String newName, String srcWsp) does not properly deal
with exceptions raised upon copying data from the source workspace. While the operation fails the creation
of the new workspace is not reverted.
This can easily be reproduced by calling the method with a non-admin session that at some level lacks
the permission to clone into the newly created workspace.
in case cloning the source wsp fails the wsp creation should be reverted before throwing the exception
that indicates that the workspace creation operation failed.
Off topic remark: this will even fail if the editing session was granted full permission on root node in the
source workspace due to the fact, that effective ac on the target workspace is the one defined by
default on an empty workspace (hopefully not granting everyone write permission to by default).