Commons Dbcp
  1. Commons Dbcp
  2. DBCP-217

Closing of underlaying connection instead of the PoolGuardConnectionWrapper

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      Is state:
      If I obtain the Connection of a Statement (stmt.getConnection()), created with dbcp,
      the returned Object is the underlaying pooled connection.
      Closing this connection multiple times may close the connection of another process.

      It should be:
      The Wrapper over the connection PoolGuardConnectionWrapper should be returned instead.

        Activity

        Sebastian Mancke created issue -
        Sebastian Mancke made changes -
        Field Original Value New Value
        Affects Version/s 1.2.2 [ 12311976 ]
        Description
        Is state:
        If I obtain the Connection of a Statement (stmt.getConnection()), created with dbcp,
        the returned Object is the underlaying pooled connection.
        Closing this connection multiple times may close the connection of another process.

        It should be:
        The Wrapper over the connection PoolGuardConnectionWrapper should be returned instead.

        Summary ding Closing of underlaying connection instead of the PoolGuardConnectionWrapper
        Sebastian Mancke made changes -
        Attachment connectionCloseFix.patch [ 12355594 ]
        Henri Yandell made changes -
        Fix Version/s 1.3 [ 12311977 ]
        Dain Sundstrom made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebastian Mancke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development