[
https://jira.nuxeo.org/browse/NXP-5656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thierry Delprat resolved NXP-5656.
----------------------------------
Resolution: Won't Fix
Sorry, I do understand the problem, but fix is not simple.
We need to do this check is order to avoid recreating the same content at each
restart or overwrite the content that may have been initialized by some custom
code.
You basically have to options :
- handle the complete initialisation in you current init code (the one that
creates user workspaces)
- contribute a new ContentTemplateFactory that will match your use cases
=> I don't see how I can easily match your use case without breaking logic in
the current code.
If you have a patch proposal, we will take a look.
> Aggressive checks might prevent the repository to be initialized
> ----------------------------------------------------------------
>
> Key: NXP-5656
> URL: https://jira.nuxeo.org/browse/NXP-5656
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.3.2
> Environment: Linux JDK 1.6
> Reporter: François-Denis Gonthier
> Assignee: Thierry Delprat
> Fix For: 5.4
>
>
> SimpleTemplateBasedFactory in nuxeo-platform-content-template-manager is
> supposed to create the super spaces like workspaces and sections. It includes
> a check that cancel such initialization if the repository already contain any
> kind of data already.
> public void createContentStructure(DocumentModel eventDoc)
> throws ClientException {
> super.initSession(eventDoc);
> if (!isTargetEmpty(eventDoc)) {
> return;
> }
> ...
> This is overly-agressive. On the code I am working on, the user workspaces
> are created early because of the use of the user workspace service in some
> event handler. Once the user workspaces are create, this check prevents the
> repository from being created. This is especially limiting when using
> repository unit tests.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.org/secure/Administrators.jspa
-
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