You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/18 20:18:13 UTC
[jira] [Commented] (ARIES-1550) aries-transaction-jdbc: Calls to
getConnection() with null user and password
[ https://issues.apache.org/jira/browse/ARIES-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15289723#comment-15289723 ]
ASF GitHub Bot commented on ARIES-1550:
---------------------------------------
GitHub user j0xaf opened a pull request:
https://github.com/apache/aries/pull/47
[ARIES-1550] getConnection with null user
Call underlying datasource´s getConnection() if no
aries.xa.username is set. Relates to ARIES-1171.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/j0xaf/aries ARIES-1550-transaction-jdbc-getConnection-with-null-user-password
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/aries/pull/47.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #47
----
commit 89e54d6a792d31ec9d5bc0de972b458a2129b5f9
Author: Joern Gersdorf <j0...@j0xaf.de>
Date: 2016-05-11T20:45:13Z
[ARIES-1550] getConnection with null user
Call underlying datasource´s getConnection() if no
aries.xa.username is set. Relates to ARIES-1171.
----
> aries-transaction-jdbc: Calls to getConnection() with null user and password
> ----------------------------------------------------------------------------
>
> Key: ARIES-1550
> URL: https://issues.apache.org/jira/browse/ARIES-1550
> Project: Aries
> Issue Type: Bug
> Components: Transaction
> Affects Versions: transaction-jdbc-2.1.1
> Reporter: Jörn Gersdorf
>
> This is a follow-up to ARIES-1171.
> aries-transaction-jdbc can wrap a "normal" DataSource with pooling functionality. If that happens, it calls DataSource.getConnection(String, String) with null user/password (in case {{aries.xa.username}} and/or {{aries.xa.password}} are not set.
> In some {{DataSource}}-implementations this causes a NPE, e. g. DB2. Derby and H2 for example also work with null parameters.
> A fix similar to ARIES-1171 is proposed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)