CommentManagerImpl is incorrectly using the login
-------------------------------------------------

                 Key: NXP-2577
                 URL: http://jira.nuxeo.org/browse/NXP-2577
             Project: Nuxeo Enterprise Platform
          Issue Type: Bug
    Affects Versions: 5.2 M2
            Reporter: Bogdan Stefanescu
            Assignee: Thierry Delprat
             Fix For: 5.2 M3


This is the code used to obtain a core session
        try {
            log.info("trying to connect to ECM platform");
            Framework.login();
            RepositoryManager manager = 
Framework.getService(RepositoryManager.class);
            session = manager.getRepository(repositoryName).open();
            log.info("CommentManager connected to ECM");
            currentRepositoryName = repositoryName;
        } catch (Exception e) {
            log.error("failed to connect to ECM platform", e);
            throw new RuntimeException(e);
        }
        return session;

A login is performed without doing  logout in a finally block.



-- 
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