Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA14F200C2B for ; Thu, 2 Mar 2017 10:46:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D8C5D160B6F; Thu, 2 Mar 2017 09:46:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2C72B160B61 for ; Thu, 2 Mar 2017 10:46:44 +0100 (CET) Received: (qmail 84649 invoked by uid 500); 2 Mar 2017 09:46:43 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 84586 invoked by uid 99); 2 Mar 2017 09:46:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2017 09:46:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3CD2FC0ABA for ; Thu, 2 Mar 2017 09:46:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.399 X-Spam-Level: ** X-Spam-Status: No, score=2.399 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fB60o7puJukQ for ; Thu, 2 Mar 2017 09:46:40 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2FB905F257 for ; Thu, 2 Mar 2017 09:46:40 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id m124so36442467oig.1 for ; Thu, 02 Mar 2017 01:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=mgv5yHILWnYaddMAYeICF7yjOFZu7MfMPkHSmPtkrhQ=; b=KxW9u05M5/agElFeg3fap5iV6QlpoTB90czLldzXEswD/PZE1kP62gf3RYhnxZugxm 8sZC/jKSDAD8KFKlr+3OhboCzBW8ZsdCEOpDR1JUMJRYdDdBXJdAhvzA9KRdHyZ9lvRB MKRcRyDwXKbtMe2oY+8n1+GoOV/+zM42JkQQXhrJMZ52sjjyxWflwiBP7smO1hk243iP VQnFXF5ZVtL2YRd044h2buN7s7KSeubzkLTf0XJlP2xkoS+oeFfBnjmcwR7E/Pvk9vQK iBlvSwxVTAI6/GOeS+s+YZ/I+znlRS04Btf7BGRSKlJ1ET7WJ+Mi/1eZAAff01JaLHwQ 962Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mgv5yHILWnYaddMAYeICF7yjOFZu7MfMPkHSmPtkrhQ=; b=IgJ3SX3bI7XaM6Chc4OfFMo2FCDvW/zp4l5opgLt0nkQSVCEiu7l/Djk97CM9b73JN fi3FRd+MuGp9laLVyNFbdbF6bOXEJHiOZRmbWSuECplpYqrGEAJvHsTPATw5i/LtfJGN qELFim+Yp7PDbgbCFE0dc0u6PKgmPmVabilC79fb4H4uMZ4M6sGVJwafalZx7Zk9A6LB n3Uz2iLx9OU4uYUv7igMD6CdB4bMRbdTsZAJDSaAYHmaHXh4J5B1DKsalFp75dWfwHcU EAyX+VKQ2WnUSKTCpRlOyjK/vwzKB3MMGzkXGPStoUefAtolvaUzMW9VAnX9DGBwZePc bKrw== X-Gm-Message-State: AMke39kEPmaih/NNu83pFJBSVBd8vWXoGOKNMwp94dGp4SWiRjHmGrJURUR4wVDnX3WdXXjvtcKwZxhuypJquw== X-Received: by 10.202.179.5 with SMTP id c5mr6921255oif.69.1488447998920; Thu, 02 Mar 2017 01:46:38 -0800 (PST) MIME-Version: 1.0 From: Antoine Chevin Date: Thu, 02 Mar 2017 09:46:28 +0000 Message-ID: Subject: Re: Accessing queues with '/' in name in Rest API [qpid java broker 6.0.4] To: "users@qpid.apache.org" Content-Type: multipart/alternative; boundary=001a113ce5983e10380549bc4e21 archived-at: Thu, 02 Mar 2017 09:46:45 -0000 --001a113ce5983e10380549bc4e21 Content-Type: text/plain; charset=UTF-8 Thank you Rob for the answer. Yes it really helps! I noticed that addresses in the form / are also used with AMQP 1-0. Is it expected? Thank you, Regards, Antoine On 1 March 2017 at 20:25, Olivier Mallassi wrote: > Rob, all > > Thank you rob for this. Could you please share more details regarding > not using the "/"? > > So there are a couple of reasons why I think not using a / makes sense: 1) Because of exactly the REST / encoding issue that you ran into - using characters that often need escaping can cause a lot of issues in config files, parameters etc... depending upon where the queue name might be used you may end up encoding that / one, two or even more times... this gets messy fast 2) Because in AMQP addressing we've been imaging the / as a separator when using some sort of topological address scheme for addressing in federated networks... for instance you might have a queue for orders in you dongle department of your widget division of your company foo.com... and you might expose that address as //foo.com/widget/dongle/orders whereas someone connected directly to the broker would just see the queue as "orders" (though they could also address it by its full "global" name). The Java Broker already makes some allowance for this with the notion of "globalAddressDomains" which you can set on the virtual host. For any domain in the list of defined globalAddressDomains, the virtualhost will accept messages sent /M as if it were sent to M (and the same with consuming). Also note that for the Java Broker an address of the form / can be used to send / receive via AMQP 0-x exchange/routing-key semantics. Hope this helps, Rob > On our side we are using amqp 1.0 that, AFAIU, promotes the "complex" > addressing plans > The benefit for us would be > - alignements between our http and amqp naming conventions. It is a > nice to have but can help lisibility > - use "URL" to route messages. Like the samples with the > linkroutepattern > > Not sure these are good ideas btw. Any feedback is welcomed > > Regards > > On Wed, 1 Mar 2017 at 18:16, Rob Godfrey wrote: > > > In general I'd advise against using the '/' character in queue names > > if possible... however if you must, then you need double encode the > > name, so "a/b" would become "a%252Fb" > > > > Hope this helps, > > Rob > > > > On 1 March 2017 at 17:31, Antoine Chevin > wrote: > > > > > Hello, > > > > > > I created a queue with a '/' in the name. How can I access it in > > > the > rest > > > api? > > > I tried to encode the '/' with %2F but I still get a 422 "too many > > entries > > > in path for REST servlet queue." > > > Can you please help? > > > > > > Regards, > > > Antoine > > > > > > --001a113ce5983e10380549bc4e21--