You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "William Lam (JIRA)" <ji...@apache.org> on 2007/08/17 22:53:22 UTC

[jira] Created: (AMQ-1365) Username and password field got swapped when calling PooledConnection.createConnection

Username and password field got swapped when calling PooledConnection.createConnection
--------------------------------------------------------------------------------------

                 Key: AMQ-1365
                 URL: https://issues.apache.org/activemq/browse/AMQ-1365
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 4.1.1
         Environment: Windows XP
            Reporter: William Lam


When using org.apache.activemq.pool.PooledConnection createConnection(username, password), the username and password fields are swapped.

I think the problem could be the following, based in 4.1.1 source code, 

PooledConnection.java line 77

    public synchronized Connection createConnection(String userName, String password) throws JMSException {
        ConnectionKey key = new ConnectionKey(userName, password);

ConnectionKey.java line 30

    public ConnectionKey(String password, String userName) {
        this.password = password;
        this.userName = userName;



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQ-1365) Username and password field got swapped when calling PooledConnection.createConnection

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiram Chirino updated AMQ-1365:
-------------------------------

    Fix Version/s:     (was: 5.2.0)
                   5.1.0

> Username and password field got swapped when calling PooledConnection.createConnection
> --------------------------------------------------------------------------------------
>
>                 Key: AMQ-1365
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1365
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 4.1.1
>         Environment: Windows XP
>            Reporter: William Lam
>             Fix For: 4.1.2, 5.1.0
>
>
> When using org.apache.activemq.pool.PooledConnection createConnection(username, password), the username and password fields are swapped.
> I think the problem could be the following, based in 4.1.1 source code, 
> PooledConnection.java line 77
>     public synchronized Connection createConnection(String userName, String password) throws JMSException {
>         ConnectionKey key = new ConnectionKey(userName, password);
> ConnectionKey.java line 30
>     public ConnectionKey(String password, String userName) {
>         this.password = password;
>         this.userName = userName;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-1365) Username and password field got swapped when calling PooledConnection.createConnection

Posted by "Jonas Lim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonas Lim resolved AMQ-1365.
----------------------------

       Resolution: Fixed
    Fix Version/s: 4.1.2

Thanks! 

Updated the 4.1 branch and trunk to address this issue :

4.1 branch : rev 568868
trunk :  rev 568869

> Username and password field got swapped when calling PooledConnection.createConnection
> --------------------------------------------------------------------------------------
>
>                 Key: AMQ-1365
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1365
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 4.1.1
>         Environment: Windows XP
>            Reporter: William Lam
>             Fix For: 4.1.2, 5.2.0
>
>
> When using org.apache.activemq.pool.PooledConnection createConnection(username, password), the username and password fields are swapped.
> I think the problem could be the following, based in 4.1.1 source code, 
> PooledConnection.java line 77
>     public synchronized Connection createConnection(String userName, String password) throws JMSException {
>         ConnectionKey key = new ConnectionKey(userName, password);
> ConnectionKey.java line 30
>     public ConnectionKey(String password, String userName) {
>         this.password = password;
>         this.userName = userName;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.