You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "A (JIRA)" <ji...@apache.org> on 2017/04/25 20:48:04 UTC

[jira] [Commented] (AMQ-3355) Selectors on message properties with a hyphen in the name don't work with STOMP

    [ https://issues.apache.org/jira/browse/AMQ-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983587#comment-15983587 ] 

A commented on AMQ-3355:
------------------------

IMO it makes sense, provided hyphens are supported in header keys, to be able to select messages based on them. Otherwise the system should reject publishing messages with hyphens in the headers in the first place.

> Selectors on message properties with a hyphen in the name don't work with STOMP
> -------------------------------------------------------------------------------
>
>                 Key: AMQ-3355
>                 URL: https://issues.apache.org/jira/browse/AMQ-3355
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Selector
>    Affects Versions: 5.5.0
>            Reporter: Andrew Gasparovic
>
> Setting a selector like "testheader='value'" and sending a message with the appropriate testheader property results in the client receiving the message.
> But when setting a selector like "Test-Header='value'" and sending the appropriate message, the client doesn't receive the message.
> I tried quoting the property name like "'Test-Header'='value'" to no avail. Quoting it the real SQL 92 way "\"Test-Header\"='value'" (where objects are in double quotes and values are in single quotes) results in a parser exception. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)