Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56AA1179FE for ; Wed, 11 Feb 2015 17:29:12 +0000 (UTC) Received: (qmail 23863 invoked by uid 500); 11 Feb 2015 17:29:12 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 23796 invoked by uid 500); 11 Feb 2015 17:29:12 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 23784 invoked by uid 99); 11 Feb 2015 17:29:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2015 17:29:12 +0000 Date: Wed, 11 Feb 2015 17:29:12 +0000 (UTC) From: "Arthur Naseef (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMQ-5478) REST endpoint creates topic instead of queue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arthur Naseef resolved AMQ-5478. -------------------------------- Resolution: Fixed Thank you Mark. Ticket resolved. > REST endpoint creates topic instead of queue > -------------------------------------------- > > Key: AMQ-5478 > URL: https://issues.apache.org/jira/browse/AMQ-5478 > Project: ActiveMQ > Issue Type: Bug > Components: webconsole > Affects Versions: 5.10.0 > Reporter: Paul Smith > Assignee: Arthur Naseef > Priority: Minor > > This is _possibly_ simply a Documentation bug, but I was testing the REST endpoints via the documentation here: > http://activemq.apache.org/rest.html > When I first tried to post a simple message to a queue (and this queue didn't exist yet) I used this script: > {noformat} > $ curl -d "body=message" -XPOST http://admin:admin@localhost:8161/api/message/queue/orders/input > {noformat} > The above is mostly based on the documentation. I was surprised to find no queue created by looking at the web console, but i _*did*_ see a Topic created called 'queue.orders.input' and it contained 1 message (odd because there's no consumers defined). > After deleting the topic I then tried the 'other format' of the URL: > {noformat} > curl -d "body=message" -XPOST http://admin:admin@localhost:8161/api/message/orders.input?type=queue > {noformat} > This does create a Queue of name 'orders.input' as one would expect. > I'm not exactly clear then from the documentation where in the URL one is defining it as a queue using the former syntax. The URL in the documentation sort of _implies_ that the 'queue' prefix of the URL is creating a queue named 'orders.input' but it doesn't turn out that way. > So either this is a bug, or the documentation needs tweaking. -- This message was sent by Atlassian JIRA (v6.3.4#6332)