From commits-return-10348-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Tue Jul 3 20:00:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F16EF180632 for ; Tue, 3 Jul 2018 20:00:10 +0200 (CEST) Received: (qmail 25467 invoked by uid 500); 3 Jul 2018 18:00:10 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 25455 invoked by uid 99); 3 Jul 2018 18:00:10 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2018 18:00:10 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] rdhabalia closed pull request #2075: Fix: destination lookup url for v2 Message-ID: <153064080952.18263.12562838051749135044.gitbox@gitbox.apache.org> Date: Tue, 03 Jul 2018 18:00:09 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit rdhabalia closed pull request #2075: Fix: destination lookup url for v2 URL: https://github.com/apache/incubator-pulsar/pull/2075 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java index a5b045571c..185412cb73 100644 --- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java +++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java @@ -100,7 +100,7 @@ public String getServiceUrl() { public CompletableFuture> getTopicsUnderNamespace(NamespaceName namespace) { CompletableFuture> future = new CompletableFuture<>(); - String format = namespace.isV2() ? "admin/v2/namespaces/%s/destinations" : "admin/namespaces/%s/destinations"; + String format = namespace.isV2() ? "admin/v2/namespaces/%s/topics" : "admin/namespaces/%s/destinations"; httpClient .get(String.format(format, namespace), String[].class) .thenAccept(topics -> { ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services