shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Les Hazlewood (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SHIRO-227) Leak in getPermissions method of JdbcRealm
Date Tue, 24 Jan 2012 19:26:43 GMT

     [ https://issues.apache.org/jira/browse/SHIRO-227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Les Hazlewood updated SHIRO-227:
--------------------------------

    Affects Version/s: 1.1.0
        Fix Version/s: 1.2.0
    
> Leak in getPermissions method of JdbcRealm
> ------------------------------------------
>
>                 Key: SHIRO-227
>                 URL: https://issues.apache.org/jira/browse/SHIRO-227
>             Project: Shiro
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Jared Bunting
>            Assignee: Kalle Korhonen
>             Fix For: 1.2.0
>
>         Attachments: JdbcRealm_Leak_Fix.patch
>
>
> It appears that the JdbcRealm.getPermissions is leaking PreparedStatements and ResultSets.
 These are both created inside a for loop, but the finally block with close statements is
outside of the loop.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message