Shiro
  1. Shiro
  2. SHIRO-227

Leak in getPermissions method of JdbcRealm

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Les Hazlewood made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Les Hazlewood made changes -
        Fix Version/s 1.2.0 [ 12315478 ]
        Affects Version/s 1.1.0 [ 12314742 ]
        Les Hazlewood made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Les Hazlewood made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Kalle Korhonen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Kalle Korhonen made changes -
        Assignee Kalle Korhonen [ kaosko ]
        Jared Bunting made changes -
        Field Original Value New Value
        Attachment JdbcRealm_Leak_Fix.patch [ 12466654 ]
        Jared Bunting created issue -

          People

          • Assignee:
            Kalle Korhonen
            Reporter:
            Jared Bunting
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development