DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29791>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29791 DriverManagerConnectionFactory: blank username/password handling Summary: DriverManagerConnectionFactory: blank username/password handling Product: Commons Version: 1.2 Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: Other Component: Dbcp AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Mail from Maxwell Grender-Jones (on commons-dev 24 june 2004) ------------------------------------------------------------- If you supply a username but not a password, or a password but not a username, dbcp ignores these values, and simply uses the URL to connect to your database (even when defaults exist for the null values). This means if I create a DriverManagerConnectionFactory with url, user and pass of mydburl, myusername, null, it will try connect to mydburl using default username and default password rather than myusername and default password. The solution: Allow the default username and password values to be used when one is present but the other is not, as provided by the patch. Now I realise default usernames/passwords are not ideal, but at the same time there's no need to prevent this functionality from working (imho). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]