Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 641624396 for ; Fri, 13 May 2011 16:21:30 +0000 (UTC) Received: (qmail 6334 invoked by uid 500); 13 May 2011 16:21:30 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 6304 invoked by uid 500); 13 May 2011 16:21:30 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 6297 invoked by uid 99); 13 May 2011 16:21:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 16:21:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 16:21:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 49E9089E3F for ; Fri, 13 May 2011 16:20:48 +0000 (UTC) Date: Fri, 13 May 2011 16:20:48 +0000 (UTC) From: "Hiram Chirino (JIRA)" To: commits@activemq.apache.org Message-ID: <233795331.10485.1305303648283.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (APLO-6) Alternative topic separators should be supported in Apollo, as in ActiveMQ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/APLO-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033109#comment-13033109 ] Hiram Chirino commented on APLO-6: ---------------------------------- Hey Sam, Where do you think would be the best place to configure that option? A a broker level? Per connector? Per client? > Alternative topic separators should be supported in Apollo, as in ActiveMQ > -------------------------------------------------------------------------- > > Key: APLO-6 > URL: https://issues.apache.org/jira/browse/APLO-6 > Project: ActiveMQ Apollo > Issue Type: Bug > Components: apollo-broker > Affects Versions: 1.0-beta2 > Environment: All environments. > Reporter: Sam Starling > Assignee: Hiram Chirino > 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