Nicolas FILOTTO created JCR-4033:
------------------------------------

             Summary: Session Leak in case of an exception inside the 
constructor of SessionImpl
                 Key: JCR-4033
                 URL: https://issues.apache.org/jira/browse/JCR-4033
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 2.13.3
            Reporter: Nicolas FILOTTO


If an exception occurs inside the constructor of SessionImpl, the session is 
then partially created but it is still considered as alive and a live session 
that is about to be GCed is considered as a session leak by the current code 
such that we get a warning of type

 Unclosed session detected. The session was opened here:

One concrete use case is an attempt to login with correct credentials but 
without enough rights to access to a given workspace, we then get a  Workspace 
access denied which occurs in the constructor of SessionImpl so we finally get 
the warning indicating that we have a session leak which should not be the case 
here.

More details in this post 
http://stackoverflow.com/questions/39163571/jackrabbit-unclosed-session-detected-on-accessdeniedexception-but-session-is-nul



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to