You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Bhooshan Mogal (Created) (JIRA)" <ji...@apache.org> on 2012/02/09 18:21:59 UTC

[jira] [Created] (AMQ-3711) Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)

Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-3711
                 URL: https://issues.apache.org/jira/browse/AMQ-3711
             Project: ActiveMQ
          Issue Type: Bug
          Components: CMS (C++ client)
    Affects Versions: 5.5.1
         Environment: RHEL4 on both client and server 

I am using CMS v3.4.1
            Reporter: Bhooshan Mogal
            Priority: Minor


I tried to connect to the an ActiveMQ server using the C++ client API. However, when I pass the credentials (username and password) only through the ActiveMQConnectionFactory  constructor and not through the createConnection method, the password is not shows up as null in the server logs.
So,

 auto_ptr<ActiveMQConnectionFactory> connectionFactory(
                new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
            try{
                connection = connectionFactory->createConnection();
                connection->start();
            } catch( CMSException& e ) {
                e.printStackTrace();
                throw e;
            }
results in the server receiving the password as null. However, when the credentials are passed through the createConnection method as well, like - 
auto_ptr<ActiveMQConnectionFactory> connectionFactory(
                new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
            try{
                connection = connectionFactory->createConnection("username", "password");
                connection->start();
            } catch( CMSException& e ) {
                e.printStackTrace();
                throw e;
            }

the server receives the password correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Moved] (AMQCPP-387) Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)

Posted by "Timothy Bish (Moved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish moved AMQ-3711 to AMQCPP-387:
------------------------------------------

          Component/s:     (was: CMS (C++ client))
                       CMS Impl
    Affects Version/s:     (was: 5.5.1)
                       3.4.1
                  Key: AMQCPP-387  (was: AMQ-3711)
              Project: ActiveMQ C++ Client  (was: ActiveMQ)
    
> Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQCPP-387
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-387
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>    Affects Versions: 3.4.1
>         Environment: RHEL4 on both client and server 
> I am using CMS v3.4.1
>            Reporter: Bhooshan Mogal
>            Priority: Minor
>
> I tried to connect to the an ActiveMQ server using the C++ client API. However, when I pass the credentials (username and password) only through the ActiveMQConnectionFactory  constructor and not through the createConnection method, the password is not shows up as null in the server logs.
> So,
>  auto_ptr<ActiveMQConnectionFactory> connectionFactory(
>                 new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
>             try{
>                 connection = connectionFactory->createConnection();
>                 connection->start();
>             } catch( CMSException& e ) {
>                 e.printStackTrace();
>                 throw e;
>             }
> results in the server receiving the password as null. However, when the credentials are passed through the createConnection method as well, like - 
> auto_ptr<ActiveMQConnectionFactory> connectionFactory(
>                 new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
>             try{
>                 connection = connectionFactory->createConnection("username", "password");
>                 connection->start();
>             } catch( CMSException& e ) {
>                 e.printStackTrace();
>                 throw e;
>             }
> the server receives the password correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQCPP-387) Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)

Posted by "Timothy Bish (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQCPP-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215979#comment-13215979 ] 

Timothy Bish commented on AMQCPP-387:
-------------------------------------

Recommend you look at the existing unit tests and see if you can add some additional tests that help to identify the issue and preserve a fix once applied. 
                
> Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQCPP-387
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-387
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>    Affects Versions: 3.4.1
>         Environment: RHEL4 on both client and server 
> I am using CMS v3.4.1
>            Reporter: Bhooshan Mogal
>            Priority: Minor
>
> I tried to connect to the an ActiveMQ server using the C++ client API. However, when I pass the credentials (username and password) only through the ActiveMQConnectionFactory  constructor and not through the createConnection method, the password is not shows up as null in the server logs.
> So,
>  auto_ptr<ActiveMQConnectionFactory> connectionFactory(
>                 new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
>             try{
>                 connection = connectionFactory->createConnection();
>                 connection->start();
>             } catch( CMSException& e ) {
>                 e.printStackTrace();
>                 throw e;
>             }
> results in the server receiving the password as null. However, when the credentials are passed through the createConnection method as well, like - 
> auto_ptr<ActiveMQConnectionFactory> connectionFactory(
>                 new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
>             try{
>                 connection = connectionFactory->createConnection("username", "password");
>                 connection->start();
>             } catch( CMSException& e ) {
>                 e.printStackTrace();
>                 throw e;
>             }
> the server receives the password correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQCPP-387) Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)

Posted by "Timothy Bish (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-387.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.5.0
                   3.4.2
         Assignee: Timothy Bish

Fixed on trunk and in 3.4.x branch
                
> Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQCPP-387
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-387
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>    Affects Versions: 3.4.1
>         Environment: RHEL4 on both client and server 
> I am using CMS v3.4.1
>            Reporter: Bhooshan Mogal
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 3.4.2, 3.5.0
>
>
> I tried to connect to the an ActiveMQ server using the C++ client API. However, when I pass the credentials (username and password) only through the ActiveMQConnectionFactory  constructor and not through the createConnection method, the password is not shows up as null in the server logs.
> So,
>  auto_ptr<ActiveMQConnectionFactory> connectionFactory(
>                 new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
>             try{
>                 connection = connectionFactory->createConnection();
>                 connection->start();
>             } catch( CMSException& e ) {
>                 e.printStackTrace();
>                 throw e;
>             }
> results in the server receiving the password as null. However, when the credentials are passed through the createConnection method as well, like - 
> auto_ptr<ActiveMQConnectionFactory> connectionFactory(
>                 new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
>             try{
>                 connection = connectionFactory->createConnection("username", "password");
>                 connection->start();
>             } catch( CMSException& e ) {
>                 e.printStackTrace();
>                 throw e;
>             }
> the server receives the password correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira