Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1586

The attributesAsPassword property doesn't work correctly with EmbeddedConnectionPoolDataSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC
    • None
    • Regression

    Description

      When attributesAsPassword is true, EmbeddedConnectionPoolDataSource.getPooledConnection() appends the default password to the connection url. This leads to a malformed url error if the password is not on the form "xxx=yyy". If the password is on the form "xxx=yyy", it might cause other unexpected consequences (for instance if it is "shutdown=true"). This is not a problem with EmbeddedDataSource or EmbeddedXADataSource. In Derby 10.1.3.1, it works as expected, so this is a regression.

      Attachments

        1. 1586-test.diff
          9 kB
          Knut Anders Hatlen
        2. 1586-v1.diff
          3 kB
          Knut Anders Hatlen
        3. 1586-v1.stat
          0.3 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: