|
[
Permlink
| « Hide
]
Phil Steitz added a comment - 12/Oct/07 12:09 AM
Thanks for reporting this. It would be great to have the code above put into a patch, with the steps to reproduce put into a test case that fails before and succeeds after the fix.
Hello Phil Steitz,
thanks for your eMail. Here a have an test case that reproduces the bug. test case ======== String serverName = "localhost"; String user1 = "doris"; String user2 = "cramer"; Connection con = null; PGConnectionPoolDataSource ConPoolDS = new try { con = SharedDS.getConnection(user1, password1); } catch (Exception e) try { // connection will fail because the wrong password is stored in the usersKey map. con = SharedDS.getConnection(user2, password2); }catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }steps to reproduce ================ The SharedPoolDataSource saves wrong password forever _________________________________________________________________________________________ Slightly modified version of the suggested fix implemented in r616142.
Thanks! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||