[ 
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 as a topic separator (.), 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|http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/path/PathParser.java?view=markup]}},
 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:

{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|http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/path/PathParser.java?view=markup]}},
 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 as a topic separator (.), 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|http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/path/PathParser.java?view=markup]}},
>  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

Reply via email to