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

Root cause is swallowed for AccessControlException in JcrRepository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Final
    • None
    • None
    • None
    • Low

      In org.modeshape.jcr.JcrRepository on line 944 the correct root cause of a JAAS login exception is swallowed, this makes it hard to find the problem:

      // Need to make sure that the user has access to this session
      try

      { session.checkPermission(workspaceName, null, JcrSession.JCR_READ_PERMISSION); }

      catch (AccessControlException ace)

      { throw new NoSuchWorkspaceException(JcrI18n.workspaceNameIsInvalid.text(sourceName, workspaceName)); }

              bcarothers_jira Brian Carothers (Inactive)
              camunda_jira Bernd Ruecker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: