Merged V3.2 to HEAD

15657: ETHREEOH-2638: Admin and guest users duplicated after upgrade to v3.2. Cannot delete duplicates due to missing authentication.
      - Split out alfrescoAuthorityStoreDefaultMembers.xml, only loaded on initial bootstrap so that admin and guest users not duplicated
      - Modified org.alfresco.repo.jscript.People and org.alfresco.web.bean.users.UsersDialog so that person deletion doesn't fail if internal authentication information doesn't exist


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15658 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2009-08-10 11:03:36 +00:00
parent 021289c7f5
commit 1e5592c51b
4 changed files with 58 additions and 35 deletions

View File

@@ -22,13 +22,6 @@
<cm:name>GROUP_ALFRESCO_ADMINISTRATORS</cm:name> <cm:name>GROUP_ALFRESCO_ADMINISTRATORS</cm:name>
<cm:authorityName>GROUP_ALFRESCO_ADMINISTRATORS</cm:authorityName> <cm:authorityName>GROUP_ALFRESCO_ADMINISTRATORS</cm:authorityName>
</view:properties> </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> </cm:authorityContainer>
<cm:authorityContainer view:childName="cm:GROUP_EMAIL_CONTRIBUTORS"> <cm:authorityContainer view:childName="cm:GROUP_EMAIL_CONTRIBUTORS">
<view:aspects> <view:aspects>
@@ -39,13 +32,6 @@
<sys:node-uuid>GROUP_EMAIL_CONTRIBUTORS</sys:node-uuid> <sys:node-uuid>GROUP_EMAIL_CONTRIBUTORS</sys:node-uuid>
<cm:authorityName>GROUP_EMAIL_CONTRIBUTORS</cm:authorityName> <cm:authorityName>GROUP_EMAIL_CONTRIBUTORS</cm:authorityName>
</view:properties> </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> </cm:authorityContainer>
</sys:children> </sys:children>
</view:associations> </view:associations>
@@ -69,16 +55,6 @@
<cm:name>AUTH.ALF</cm:name> <cm:name>AUTH.ALF</cm:name>
</view:properties> </view:properties>
<view:associations> <view:associations>
<cm:inZone>
<view:reference
view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.adminusername}"
view:childName="cm:${alfresco_user_store.adminusername}" />
</cm:inZone>
<cm:inZone>
<view:reference
view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.guestusername}"
view:childName="cm:${alfresco_user_store.guestusername}" />
</cm:inZone>
<cm:inZone> <cm:inZone>
<view:reference <view:reference
view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_ADMINISTRATORS" view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_ADMINISTRATORS"
@@ -100,16 +76,6 @@
<cm:name>APP.DEFAULT</cm:name> <cm:name>APP.DEFAULT</cm:name>
</view:properties> </view:properties>
<view:associations> <view:associations>
<cm:inZone>
<view:reference
view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.adminusername}"
view:childName="cm:${alfresco_user_store.adminusername}" />
</cm:inZone>
<cm:inZone>
<view:reference
view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.guestusername}"
view:childName="cm:${alfresco_user_store.guestusername}" />
</cm:inZone>
<cm:inZone> <cm:inZone>
<view:reference <view:reference
view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_ADMINISTRATORS" view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_ADMINISTRATORS"

View File

@@ -0,0 +1,45 @@
<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">
<view:reference view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_ADMINISTRATORS">
<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>
</view:reference>
<view:reference view:pathref="${system.authorities_container.childname}/cm:GROUP_EMAIL_CONTRIBUTORS">
<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>
</view:reference>
<view:reference view:pathref="${system.zones_container.childname}/cm:AUTH.ALF">
<view:associations>
<cm:inZone>
<view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.adminusername}"
view:childName="cm:${alfresco_user_store.adminusername}" />
</cm:inZone>
<cm:inZone>
<view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.guestusername}"
view:childName="cm:${alfresco_user_store.guestusername}" />
</cm:inZone>
</view:associations>
</view:reference>
<view:reference view:pathref="${system.zones_container.childname}/cm:APP.DEFAULT">
<view:associations>
<cm:inZone>
<view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.adminusername}"
view:childName="cm:${alfresco_user_store.adminusername}" />
</cm:inZone>
<cm:inZone>
<view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.guestusername}"
view:childName="cm:${alfresco_user_store.guestusername}" />
</cm:inZone>
</view:associations>
</view:reference>
</view:view>

View File

@@ -511,6 +511,11 @@
<prop key="location">alfresco/bootstrap/alfrescoAuthorityStore.xml</prop> <prop key="location">alfresco/bootstrap/alfrescoAuthorityStore.xml</prop>
</props> </props>
<props>
<prop key="path">/${system.system_container.childname}</prop>
<prop key="location">alfresco/bootstrap/alfrescoAuthorityStoreDefaultMembers.xml</prop>
</props>
<props> <props>
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.scripts.childname}</prop> <prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.scripts.childname}</prop>
<prop key="location">alfresco/bootstrap/imapScripts.xml</prop> <prop key="location">alfresco/bootstrap/imapScripts.xml</prop>

View File

@@ -189,7 +189,14 @@ public final class People extends BaseScopableProcessorExtension
public void deletePerson(String username) public void deletePerson(String username)
{ {
personService.deletePerson(username); personService.deletePerson(username);
mutableAuthenticationDao.deleteUser(username); try
{
mutableAuthenticationDao.deleteUser(username);
}
catch (AuthenticationException e)
{
// Let's not worry if authentication details don't exist
}
} }
/** /**