tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50025] getConnection method in class DataSourceProxy is ignoring credentials
Date Fri, 22 Oct 2010 14:29:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50025

--- Comment #3 from Tim <tcl6@cornell.edu> 2010-10-22 10:29:26 EDT ---
(In reply to comment #2)
> Do you have a code example to show how you receive this error? Or perhaps even
> a JUnit test?

Take a look at the source code for getConnection.  It was included in a reply
to my original post in the forums (reproduced below).

---
This is an issue with the new jdbc-pool implementation, it internally always
uses the default configured username/password. I suggest raising a bug on the
tomcat(jdbc-pool) issue tracker.

The actual code.
Code:
public class DataSourceProxy implements PoolConfiguration {

...
   /**
     * {@link javax.sql.DataSource#getConnection()}
     */
    public Connection getConnection(String username, String password) throws
SQLException {
        return getConnection();
    }
....

}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message