cancel
Showing results for 
Search instead for 
Did you mean: 

Bootstrap and groups

morgan_david
Champ in-the-making
Champ in-the-making
Background:
I'm upgrading an web application based around Alfresco 3.0 Enterprise to Alfresco 3.3.2 Enterprise.  We have an extensive suite of unit tests that fire up the Alfresco context and do all sorts of things.  Part of this was having some spaces, one group, and one user inserted into the bootstrap process.  This all worked in 3.0 but I'm not getting some issues relating to this bootstrap in 3.3.2.  Namely, the spaces are bootstrapped but the group is not (or at least that's what I think is going on).

One of our unit tests simply tries to add a user to the system programmatically; the PersonService creates the user and the AuthenticationService adds that user to the bootstrapped group.  The problem is when we try to add the user to the group.  We're getting the message, "org.alfresco.repo.security.authority.UnknownAuthorityException: 09290000 An authority was not found for GROUP_test".  Here is where I get lost.

Here is my file to bootstrap the group:

<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
         xmlns:cm="http://www.alfresco.org/model/content/1.0"
         xmlns:sys="http://www.alfresco.org/model/system/1.0"
         xmlns:usr="http://www.alfresco.org/model/user/1.0"
         xmlns:app="http://www.alfresco.org/model/application/1.0">

   <sys:container view:childName="${system.authorities_container.childname}">
      <view:acl>
         <view:ace view:access="ALLOWED">
            <view:authority>GROUP_EVERYONE</view:authority>
            <view:permission>Read</view:permission>
         </view:ace>
      </view:acl>
      <view:associations>
         <sys:children>
            <cm:authorityContainer view:childName="cm:GROUP_test">
               <view:aspects>
                  <sys:referenceable />
               </view:aspects>
               <view:properties>
                  <sys:node-uuid>GROUP_test</sys:node-uuid>
                  <cm:name>GROUP_test</cm:name>
                  <cm:authorityName>GROUP_test</cm:authorityName>
               </view:properties>
               <view:associations>
                  <cm:member>
                     <view:reference
                        view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.adminusername}"
                        view:childName="cm:${alfresco_user_store.adminusername}" />
                  </cm:member>
               </view:associations>
            </cm:authorityContainer>
         </sys:children>
      </view:associations>
   </sys:container>

</view:view>

This file is being loaded through a bean whose parent is spacesBootstrap-base.

Does anything jump out as wrong?  Am I missing something that's different from 3.0?
1 REPLY 1

mrogers
Star Contributor
Star Contributor
I suspect that the internal implementation of groups may have changed.   In particular zones were introduced in 3.2.

Please contact alfresco support, they will want details of your test program.