Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3088

WorkspaceImpl.createWorkspace(String,String) is not atomic

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

      suggested fix:
      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).

        Activity

        angela created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            angela
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development