Commons Dbcp
  1. Commons Dbcp
  2. DBCP-382

Could not set flag "accessToUnderlyingConnectionAllowed" in "context.xml" for DriverAdapterCPDS/PerUserPoolDataSource

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.5.1, 2.0
    • Labels:
      None
    • Environment:

      Apache Tomcat 6.0.32 / DBCP 1.3

      Description

      Could not set flag "accessToUnderlyingConnectionAllowed" in context.xml for DriverAdapterCPDS/PerUserPoolDataSource because the property is not considered from the factory.
      A possible solution is to add following lines to class "DriverAdapterCPDS" on the end of method "getObjectInstance"

      ra = ref.get("accessToUnderlyingConnectionAllowed");
      if (ra != null && ra.getContent() != null) {
      	setAccessToUnderlyingConnectionAllowed(Boolean.valueOf(ra.getContent().toString()).booleanValue());
      }
      

        Activity

        Hide
        Mark Thomas added a comment -

        Thanks for the report and the patch. Sorry it has taken so long to apply it.

        I've applied the patch to trunk for the 2.x series and to the 1.5.x branch. It will be included in the next release of each.

        If there are further 1.3.x and 1.4.x releases (currently being discussed on the dev mailing list) my expectation is that they will be generated from the 1.5.x branch so will pick up this fix too.

        Show
        Mark Thomas added a comment - Thanks for the report and the patch. Sorry it has taken so long to apply it. I've applied the patch to trunk for the 2.x series and to the 1.5.x branch. It will be included in the next release of each. If there are further 1.3.x and 1.4.x releases (currently being discussed on the dev mailing list) my expectation is that they will be generated from the 1.5.x branch so will pick up this fix too.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Rempfer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development