You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Sam Starling (JIRA)" <ji...@apache.org> on 2011/03/29 13:36:05 UTC

[jira] [Updated] (AMQ-3250) Alternative topic separators should be supported in Apollo, as in ActiveMQ

     [ https://issues.apache.org/jira/browse/AMQ-3250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sam Starling updated AMQ-3250:
------------------------------

    Description: 
When using a character other than a period (.), Apollo throws the following exception:

{code} 
org.apache.activemq.apollo.util.path.PathParser$PathException: Invalid destination path part: 'event/abc', it does not match regex: [a-zA-Z0-9\_\-\%\~]+
{code}

In the example, we're using "/topic/event/abc" as a topic. In PathParser.java, line 47 determines that path_seperator = new AsciiBuffer("."). Thus, Apollo incorrectly tokenizes the topic and so "event/abc" fails the regular expression on line 48 of the same file.

In short, it should be possible to specify what the topic separator is, or (even better) detect when a different character is being used as a delimiter.

  was:
When using a character other than a period (.), Apollo throws the following exception:

org.apache.activemq.apollo.util.path.PathParser$PathException: Invalid destination path part: 'event/abc', it does not match regex: [a-zA-Z0-9\_\-\%\~]+

In the example, we're using "/topic/event/abc" as a topic. In PathParser.java, line 47 determines that path_seperator = new AsciiBuffer("."). Thus, Apollo incorrectly tokenizes the topic and so "event/abc" fails the regular expression on line 48 of the same file.

In short, it should be possible to specify what the topic separator is, or (even better) detect when a different character is being used as a delimiter.


> Alternative topic separators should be supported in Apollo, as in ActiveMQ
> --------------------------------------------------------------------------
>
>                 Key: AMQ-3250
>                 URL: https://issues.apache.org/jira/browse/AMQ-3250
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Apollo
>         Environment: All environments.
>            Reporter: Sam Starling
>              Labels: apollo, topic
>
> When using a character other than a period (.), Apollo throws the following exception:
> {code} 
> org.apache.activemq.apollo.util.path.PathParser$PathException: Invalid destination path part: 'event/abc', it does not match regex: [a-zA-Z0-9\_\-\%\~]+
> {code}
> In the example, we're using "/topic/event/abc" as a topic. In PathParser.java, line 47 determines that path_seperator = new AsciiBuffer("."). Thus, Apollo incorrectly tokenizes the topic and so "event/abc" fails the regular expression on line 48 of the same file.
> In short, it should be possible to specify what the topic separator is, or (even better) detect when a different character is being used as a delimiter.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira