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


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

Reply via email to