Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1388

Warning for unmapped repositories (ContentRepository.hasRepositoryMapping() does not work properly)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1 M1
    • 3.0.1
    • None
    • None

      When an acl is set on an unmapped repository (this typically happens with dms if the dms module is not installed) a WARN is traced in the log by ContentRepository.getRepositoryMapping():

      WARN info.magnolia.cms.beans.config.ContentRepository ContentRepository.java(getRepositoryMapping:564) 17.02.2007 22:43:39 no mapping for the repository [dms]

      this should not happen since the code in JCRAuthorizationModule does:

      if (!ContentRepository.hasRepositoryMapping(repositoryName))

      { // may be: default users may have permissions for the workflow or dms repositories, but // if the optional modules are not installed no ACL should be set continue; }

      workspaceName = ContentRepository.getDefaultWorkspace(name);

      but ContentRepository.getDefaultWorkspace(name) does a different check than hasRepositoryMapping() in order to determine if a repository has been registered.

        Acceptance criteria

              fgiust Fabrizio Giustina
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: