commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <dirk.verbe...@pandora.be>
Subject Re: [dbcp] [PATCH] Fix for blank username/password handling
Date Thu, 24 Jun 2004 18:35:54 GMT
Patch applied

Thanks
Dirk

Maxwell Grender-Jones wrote:
> The problem (in DriverManagerConnectionFactory.java):
> 
> 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).
> 
> Regards,
> 
> Max



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message