db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1586) The attributesAsPassword property doesn't work correctly with EmbeddedConnectionPoolDataSource
Date Tue, 25 Jul 2006 12:17:15 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1586?page=all ]

Knut Anders Hatlen updated DERBY-1586:

    Attachment: 1586-test.diff

1586-test.diff adds a new JUnit test, jdbcapi/DataSourcePropertiesTest.junit, which reproduces
the bug. It fails with this error:

*** Start: DataSourcePropertiesTest jdk1.5.0_04 2006-07-25 13:36:12 ***
0 add
> ..E....
> There was 1 error:
> 1) embeddedTestAttributesAsPasswordWithoutPassword_pooled(org.apache.derbyTesting.functionTests.tests.jdbcapi.DataSourcePropertiesTest)java.sql.SQLException:
The URL 'jdbc:derby:wombat;create=true;mypassword' is not properly formed.
> Tests run: 6,  Failures: 0,  Errors: 1
Test Failed.
*** End:   DataSourcePropertiesTest jdk1.5.0_04 2006-07-25 13:36:15 ***

The test runs cleanly against derby.jar from

> The attributesAsPassword property doesn't work correctly with EmbeddedConnectionPoolDataSource
> ----------------------------------------------------------------------------------------------
>                 Key: DERBY-1586
>                 URL: http://issues.apache.org/jira/browse/DERBY-1586
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions:
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: 1586-test.diff
> 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, it works as expected,
so this is a regression.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message