Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Abandoned
-
5.8.0
-
None
-
None
Description
My 5.0.8 ActiveMQ queue is named queue/andburn. Using
curl -u admin:admin -d 'body="Aardvark"' "http://localhost:8161/api/message/queue/andburn?type=queue"
or
curl -u admin:admin -d 'body="Aardvark"' 'http://localhost:8161/api/message/queue/andburn?type=queue'
creates a new queue queue.andburn. When I escape / like \/ I get queue\.andburn. When I omit type=queue I don't see my message added to my existing queue. Same when I use / or %2F to represent slashes.
Note: all escaping was done after queue in the URI, e.g.
"http://localhost:8161/api/message/queue\/andburn?type=queue"
The ActiveMQ REST page was not helpful in addressing this.
This is also happening when sending requests to ActiveMQ via a Ruby script using the RestClient gem.
require 'rest_client' require 'rubygems' @user = 'admin' @pass = 'admin' @host = 'localhost' @port = '8161' @queue = "queue/andburn" @post_ws = "/api/message/#{@queue}?type=queue" payload = "some_topic" url = "http://#{@user}:#{@pass}@#{@host}:#{@port}#{@post_ws}" response = RestClient.post(url, 'body' => payload)