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

                 Key: MAGNOLIA-1388
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1388
             Project: Magnolia
          Issue Type: Bug
    Affects Versions: 3.0.1
            Reporter: Fabrizio Giustina
         Assigned To: Fabrizio Giustina
            Priority: Minor


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to