Avoid CPU exhaustion looking for sections
-----------------------------------------

                 Key: NXP-3359
                 URL: http://jira.nuxeo.org/browse/NXP-3359
             Project: Nuxeo Enterprise Platform
          Issue Type: Bug
    Affects Versions: 5.2 RC
            Reporter: Radu Darlea
            Assignee: Catalin Baican
             Fix For: 5.2 GA


It is possible to have cpu leak in PublishActionsBean when a document located 
outside a workspace is published. The code is:

while (!"Workspace".equals(parentDocumentModel.getType())) {
   parentDocumentModel = 
documentManager.getDocument(parentDocumentModel.getParentRef());
}

If the parentDocumentModel has Root type the loop should break and the section 
list to be considered the Root ones.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://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