[
https://jira.nuxeo.com/browse/NXS-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=109102#comment-109102
]
Alain Escaffre commented on NXS-847:
------------------------------------
need to be discussed live
> Duplicate Content Template contribution
> ---------------------------------------
>
> Key: NXS-847
> URL: https://jira.nuxeo.com/browse/NXS-847
> Project: Nuxeo Studio
> Issue Type: Bug
> Affects Versions: 2.4.2
> Reporter: Vladimir Pasquier
> Assignee: Alain Escaffre
> Priority: Major
> Fix For: Short term backlog
>
>
> Steps to reproduce:
> - add a structure template for the "root" doc type, adding a child domain,
> and add ACLs to the domain
> - add another structure template for the "domain" doc type
> => the generated extensions contain:
> {noformat}
> <factoryBinding name="RootFactory" factoryName="SimpleTemplateRootFactory"
> targetType="Root">
> <acl>
> <ace principal="Administrator" permission="Everything" granted="true"/>
> <ace principal="administrators" permission="Everything" granted="true"/>
> <ace principal="members" permission="Read" granted="true"/>
> <ace principal="members" permission="Version" granted="true"/>
> </acl>
> <template>
> <templateItem typeName="Domain" id="default-domain" title="Default
> Domain" description="Nuxeo 5 Default Domain"/>
> <templateItem typeName="test" id="yo3" title="" description=""/>
> <templateItem typeName="Contract" id="Unnamed" title="" description=""/>
> </template>
> </factoryBinding>
> <factoryBinding name="DomainFactory" factoryName="SimpleTemplateFactory"
> targetType="Domain">
> <acl>
> <ace principal="bidule" permission="Read" granted="true"/>
> </acl>
> </factoryBinding>
> <factoryBinding name="DomainFactory" factoryName="SimpleTemplateFactory"
> targetType="Domain">
> <template>
> <templateItem typeName="WorkspaceRoot" id="workspaces" title="Workspaces"
> description="Workspace Root"/>
> <templateItem typeName="SectionRoot" id="sections" title="Sections"
> description="Sections Root"/>
> <templateItem typeName="TemplateRoot" id="templates" title="Templates"
> description="Workspace Templates Root"/>
> </template>
> </factoryBinding>
> {noformat}
> => the duplicate DomainFactory contribution makes the initialization fail
> (root has not content).
> Note that problem was repoduced when ordering of contributions was not
> derterministic, Vlad had a use case with the acl contribution at the end.
> Removing ACLs on the root factory for the domain fixes the issue.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets