Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3088

WorkspaceImpl.createWorkspace(String,String) is not atomic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: