Issue Details (XML | Word | Printable)

Key: DBCP-108
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Dirk Verbeeck
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Dbcp

DriverManagerConnectionFactory: blank username/password handling

Created: 25/Jun/04 01:29 AM   Updated: 25/Mar/08 08:11 AM
Return to search
Component/s: None
Affects Version/s: 1.2
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File patch.txt 2004-06-25 01:30 AM Dirk Verbeeck 1 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 29791


 Description  « Hide
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).



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.