You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Craig Hollabaugh (JIRA)" <ji...@apache.org> on 2012/07/16 08:50:33 UTC

[jira] [Created] (AMQ-3928) message-id colons are inconsistently escaped

Craig Hollabaugh created AMQ-3928:
-------------------------------------

             Summary: message-id colons are inconsistently escaped  
                 Key: AMQ-3928
                 URL: https://issues.apache.org/jira/browse/AMQ-3928
             Project: ActiveMQ
          Issue Type: Bug
          Components: stomp
    Affects Versions: 5.7.0
         Environment: ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK
            Reporter: Craig Hollabaugh


stomp version 1.0 and 1.1 have different ':' escaping for the message-id header.

------------------
here's 1.0 example

holla@knopfler[513]: nc eric 61613
CONNECT
accept-version:1.0
heart-beat:0,0

^@
CONNECTED
heart-beat:0,0
session:ID:eric-51104-1342368411805-2:20
server:ActiveMQ/5.7-SNAPSHOT
version:1.0


SUBSCRIBE
destination:/queue/foo

^@
MESSAGE
message-id:ID:eric-51104-1342368411805-4:5:1:1:8
type:
destination:/queue/foo
timestamp:1342420889593
expires:0
priority:0
correlation-id:

Enter some text here for the message body...
^\Quit

----------------------
here's 1.1 example

holla@knopfler[514]: nc eric 61613
CONNECT
accept-version:1.1
heart-beat:0,0

^@
CONNECTED
heart-beat:0,0
session:ID:eric-51104-1342368411805-2:21
server:ActiveMQ/5.7-SNAPSHOT
version:1.1


SUBSCRIBE
id:112233
destination:/queue/foo

^@
MESSAGE
message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
type:
destination:/queue/foo
timestamp:1342421009684
expires:0
subscription:112233
priority:0
correlation-id:

Enter some text here for the message body...
^\Quit


summary

v1.0
MESSAGE
message-id:ID:eric-51104-1342368411805-4:5:1:1:8

v1.1
MESSAGE
message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9


I don't know if ':' chars in all stomp headers/properties are supposed to escaped. in version 1.1, session and message-id are also escaped inconsistently. Shown here

...
session:ID:eric-51104-1342368411805-2:21
...
message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9


--
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] [Closed] (AMQ-3928) message-id colons are inconsistently escaped

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

Craig Hollabaugh closed AMQ-3928.
---------------------------------

    Resolution: Fixed

I read the protocol. all is well
                
> message-id colons are inconsistently escaped  
> ----------------------------------------------
>
>                 Key: AMQ-3928
>                 URL: https://issues.apache.org/jira/browse/AMQ-3928
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: stomp
>    Affects Versions: 5.7.0
>         Environment: ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK
>            Reporter: Craig Hollabaugh
>
> stomp version 1.0 and 1.1 have different ':' escaping for the message-id header.
> ------------------
> here's 1.0 example
> holla@knopfler[513]: nc eric 61613
> CONNECT
> accept-version:1.0
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:20
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.0
> SUBSCRIBE
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> type:
> destination:/queue/foo
> timestamp:1342420889593
> expires:0
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> ----------------------
> here's 1.1 example
> holla@knopfler[514]: nc eric 61613
> CONNECT
> accept-version:1.1
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:21
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.1
> SUBSCRIBE
> id:112233
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> type:
> destination:/queue/foo
> timestamp:1342421009684
> expires:0
> subscription:112233
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> summary
> v1.0
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> v1.1
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> I don't know if ':' chars in all stomp headers/properties are supposed to escaped. in version 1.1, session and message-id are also escaped inconsistently. Shown here
> ...
> session:ID:eric-51104-1342368411805-2:21
> ...
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9

--
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] [Closed] (AMQ-3928) message-id colons are inconsistently escaped

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

Timothy Bish closed AMQ-3928.
-----------------------------

    Resolution: Not A Problem

This is working as it should be the Stomp v1.1 spec requires the escaping while the Stomp v1.0 spec does not.  See:

http://stomp.github.com/stomp-specification-1.0.html
http://stomp.github.com/stomp-specification-1.1.html
                
> message-id colons are inconsistently escaped  
> ----------------------------------------------
>
>                 Key: AMQ-3928
>                 URL: https://issues.apache.org/jira/browse/AMQ-3928
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: stomp
>    Affects Versions: 5.7.0
>         Environment: ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK
>            Reporter: Craig Hollabaugh
>
> stomp version 1.0 and 1.1 have different ':' escaping for the message-id header.
> ------------------
> here's 1.0 example
> holla@knopfler[513]: nc eric 61613
> CONNECT
> accept-version:1.0
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:20
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.0
> SUBSCRIBE
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> type:
> destination:/queue/foo
> timestamp:1342420889593
> expires:0
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> ----------------------
> here's 1.1 example
> holla@knopfler[514]: nc eric 61613
> CONNECT
> accept-version:1.1
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:21
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.1
> SUBSCRIBE
> id:112233
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> type:
> destination:/queue/foo
> timestamp:1342421009684
> expires:0
> subscription:112233
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> summary
> v1.0
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> v1.1
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> I don't know if ':' chars in all stomp headers/properties are supposed to escaped. in version 1.1, session and message-id are also escaped inconsistently. Shown here
> ...
> session:ID:eric-51104-1342368411805-2:21
> ...
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9

--
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] [Reopened] (AMQ-3928) message-id colons are inconsistently escaped

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

Craig Hollabaugh reopened AMQ-3928:
-----------------------------------


'session' header isn't escaped. 


holla@knopfler[501]: nc eric 61613
CONNECT
accept-version:1.1
heart-beat:0,0

^@
CONNECTED
heart-beat:0,0
session:ID:eric-51104-1342368411805-2:29
server:ActiveMQ/5.7-SNAPSHOT
version:1.1

                
> message-id colons are inconsistently escaped  
> ----------------------------------------------
>
>                 Key: AMQ-3928
>                 URL: https://issues.apache.org/jira/browse/AMQ-3928
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: stomp
>    Affects Versions: 5.7.0
>         Environment: ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK
>            Reporter: Craig Hollabaugh
>
> stomp version 1.0 and 1.1 have different ':' escaping for the message-id header.
> ------------------
> here's 1.0 example
> holla@knopfler[513]: nc eric 61613
> CONNECT
> accept-version:1.0
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:20
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.0
> SUBSCRIBE
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> type:
> destination:/queue/foo
> timestamp:1342420889593
> expires:0
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> ----------------------
> here's 1.1 example
> holla@knopfler[514]: nc eric 61613
> CONNECT
> accept-version:1.1
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:21
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.1
> SUBSCRIBE
> id:112233
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> type:
> destination:/queue/foo
> timestamp:1342421009684
> expires:0
> subscription:112233
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> summary
> v1.0
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> v1.1
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> I don't know if ':' chars in all stomp headers/properties are supposed to escaped. in version 1.1, session and message-id are also escaped inconsistently. Shown here
> ...
> session:ID:eric-51104-1342368411805-2:21
> ...
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9

--
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] [Comment Edited] (AMQ-3928) message-id colons are inconsistently escaped

Posted by "Craig Hollabaugh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415121#comment-13415121 ] 

Craig Hollabaugh edited comment on AMQ-3928 at 7/16/12 1:54 PM:
----------------------------------------------------------------

in v1.1 'session' header, the ':' chars aren't escaped. 


holla@knopfler[501]: nc eric 61613
CONNECT
accept-version:1.1
heart-beat:0,0

^@
CONNECTED
heart-beat:0,0
session:ID:eric-51104-1342368411805-2:29
server:ActiveMQ/5.7-SNAPSHOT
version:1.1

                
      was (Author: holla2040):
    'session' header isn't escaped. 


holla@knopfler[501]: nc eric 61613
CONNECT
accept-version:1.1
heart-beat:0,0

^@
CONNECTED
heart-beat:0,0
session:ID:eric-51104-1342368411805-2:29
server:ActiveMQ/5.7-SNAPSHOT
version:1.1

                  
> message-id colons are inconsistently escaped  
> ----------------------------------------------
>
>                 Key: AMQ-3928
>                 URL: https://issues.apache.org/jira/browse/AMQ-3928
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: stomp
>    Affects Versions: 5.7.0
>         Environment: ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK
>            Reporter: Craig Hollabaugh
>
> stomp version 1.0 and 1.1 have different ':' escaping for the message-id header.
> ------------------
> here's 1.0 example
> holla@knopfler[513]: nc eric 61613
> CONNECT
> accept-version:1.0
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:20
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.0
> SUBSCRIBE
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> type:
> destination:/queue/foo
> timestamp:1342420889593
> expires:0
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> ----------------------
> here's 1.1 example
> holla@knopfler[514]: nc eric 61613
> CONNECT
> accept-version:1.1
> heart-beat:0,0
> ^@
> CONNECTED
> heart-beat:0,0
> session:ID:eric-51104-1342368411805-2:21
> server:ActiveMQ/5.7-SNAPSHOT
> version:1.1
> SUBSCRIBE
> id:112233
> destination:/queue/foo
> ^@
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> type:
> destination:/queue/foo
> timestamp:1342421009684
> expires:0
> subscription:112233
> priority:0
> correlation-id:
> Enter some text here for the message body...
> ^\Quit
> summary
> v1.0
> MESSAGE
> message-id:ID:eric-51104-1342368411805-4:5:1:1:8
> v1.1
> MESSAGE
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9
> I don't know if ':' chars in all stomp headers/properties are supposed to escaped. in version 1.1, session and message-id are also escaped inconsistently. Shown here
> ...
> session:ID:eric-51104-1342368411805-2:21
> ...
> message-id:ID\ceric-51104-1342368411805-4\c5\c1\c1\c9

--
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