Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-797

Session.getWorkspace().getAvailableWorkspaceNames() does not match those available in the underlying source

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.0.0.Final
    • 1.2.0.Final
    • JCR
    • None
    • Workaround Exists
    • Hide

      Since the available workspace name does include those workspaces for which Session instances are obtained, it is possible to log into sessions for each of the workspaces before the available workspace names are needed. Obviously this won't work in every situation, but it is one workaround.

      Show
      Since the available workspace name does include those workspaces for which Session instances are obtained, it is possible to log into sessions for each of the workspaces before the available workspace names are needed. Obviously this won't work in every situation, but it is one workaround.
    • Low

      After setting up a JCR repository on top of a repository source with a number of predefined workspaces and then logging into the repository, calling 'getWorkspaces().getAvailableWorkspaceNames()' on the session does not return the list of workspaces in the underlying session. This makes it appear as though the workspaces do not exist.

      Additionally, if anyone is using the Graph API to create these workspaces, they may attempt to create the workspace when in fact the workspace already exists, resulting in an error (that the workspace already exists, the source cannot create workspaces, etc.). And even if they use the Graph API correctly to create the workspace only if they do not exist, the names of those workspaces will still not be included in the list of available workspace names.

            rhauch Randall Hauch (Inactive)
            rhauch Randall Hauch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: