You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andreas Ländle (JIRA)" <ji...@apache.org> on 2010/02/09 14:27:32 UTC

[jira] Created: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
----------------------------------------------------------------------------------------------------

                 Key: AMQNET-231
                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: Stomp
    Affects Versions: 1.2.0
            Reporter: Andreas Ländle
            Assignee: Jim Gomes


ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
Please let me know if i was unclear or if you need more information (and excuse my bad English).

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


[jira] Assigned: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

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

Timothy Bish reassigned AMQNET-231:
-----------------------------------

    Assignee: Timothy Bish  (was: Jim Gomes)

> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-231
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.2.0
>            Reporter: Andreas Ländle
>            Assignee: Timothy Bish
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).

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


[jira] Commented: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

Posted by "Andreas Ländle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57461#action_57461 ] 

Andreas Ländle commented on AMQNET-231:
---------------------------------------

      var connectUri = new Uri("stomp:tcp://someserver:61613");

// the following code illustrates the problem
      var factory = NMSConnectionFactory.CreateConnectionFactory(connectUri);
      this.connection = factory.CreateConnection("user", "password"); // <-- parameters are ignored!

// workaround
      var factory = new Apache.NMS.Stomp.ConnectionFactory(connectUri);
      factory.UserName = "user";
      factory.Password = "password";
      this.connection = factory.CreateConnection("ignored_user", "ignored_password"); // <-- parameters are also ignored - the username and password set on the factory the two lines before are used.


> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-231
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.2.0
>            Reporter: Andreas Ländle
>            Assignee: Timothy Bish
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).

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


[jira] Resolved: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

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

Timothy Bish resolved AMQNET-231.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0
                   1.2.1

Resolved in trunk

> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-231
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.2.0
>            Reporter: Andreas Ländle
>            Assignee: Timothy Bish
>             Fix For: 1.2.1, 1.3.0
>
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).

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


[jira] Issue Comment Edited: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

Posted by "Andreas Ländle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57461#action_57461 ] 

Andreas Ländle edited comment on AMQNET-231 at 2/9/10 2:03 PM:
---------------------------------------------------------------

      var connectUri = new Uri("stomp:tcp://someserver:61613");

// the following code illustrates the problem
      var factory = NMSConnectionFactory.CreateConnectionFactory(connectUri);
      this.connection = factory.CreateConnection("user", "password"); // <-- parameters are ignored!

// workaround
      var factory = new Apache.NMS.Stomp.ConnectionFactory(connectUri);
      factory.UserName = "user";
      factory.Password = "password";
      this.connection = factory.CreateConnection("ignored_user", "ignored_password"); // <-- parameters are also ignored - the username and password set on the factory the two lines before are used.

I hope this will help you to reproduce the issue. Please let me know if you need further information/assistance.

      was (Author: alsoloplan):
          var connectUri = new Uri("stomp:tcp://someserver:61613");

// the following code illustrates the problem
      var factory = NMSConnectionFactory.CreateConnectionFactory(connectUri);
      this.connection = factory.CreateConnection("user", "password"); // <-- parameters are ignored!

// workaround
      var factory = new Apache.NMS.Stomp.ConnectionFactory(connectUri);
      factory.UserName = "user";
      factory.Password = "password";
      this.connection = factory.CreateConnection("ignored_user", "ignored_password"); // <-- parameters are also ignored - the username and password set on the factory the two lines before are used.

  
> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-231
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.2.0
>            Reporter: Andreas Ländle
>            Assignee: Timothy Bish
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).

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


[jira] Commented: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

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

Timothy Bish commented on AMQNET-231:
-------------------------------------

Can you provide a sample that demonstrates the problem?

> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-231
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.2.0
>            Reporter: Andreas Ländle
>            Assignee: Timothy Bish
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).

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


[jira] Commented: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.

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

Timothy Bish commented on AMQNET-231:
-------------------------------------

Fixes merged to 1.2.x fixes branch.

> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-231
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-231
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.2.0
>            Reporter: Andreas Ländle
>            Assignee: Timothy Bish
>             Fix For: 1.2.1, 1.3.0
>
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).

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