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 3D7F5200B9A for ; Fri, 7 Oct 2016 09:19:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3C313160AE8; Fri, 7 Oct 2016 07:19:39 +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 797A6160AD6 for ; Fri, 7 Oct 2016 09:19:38 +0200 (CEST) Received: (qmail 70112 invoked by uid 500); 7 Oct 2016 07:19:37 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 70101 invoked by uid 99); 7 Oct 2016 07:19:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 07:19:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CF777DFE65; Fri, 7 Oct 2016 07:19:36 +0000 (UTC) From: Dawuid To: dev@camel.apache.org Reply-To: dev@camel.apache.org Message-ID: Subject: [GitHub] camel pull request #1201: Add publishedEndpointUrl capability to rsServer Content-Type: text/plain Date: Fri, 7 Oct 2016 07:19:36 +0000 (UTC) archived-at: Fri, 07 Oct 2016 07:19:39 -0000 GitHub user Dawuid opened a pull request: https://github.com/apache/camel/pull/1201 Add publishedEndpointUrl capability to rsServer Endpoint definition allows to specify publishedEndpointUrl, but this attribute is not available in rsServer element. This attribute (publishedEndpointUrl) is used by WadlGenerator to compose baseUri resource in the WADL. If you are deploying a REST service in an internal net but exposed to internet (through reverse proxy, for example) , WADL should inform such publishing address (in a similar way that you can do it with WSDL in camel-cxf). Actually, since no publishedEndpointUrl can be used in rsServer definition, baseUri is built with HTTP request information. That means internal network information could be leaked in a reverse proxy scenario. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Dawuid/camel patch-1 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1201.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1201 ---- commit 75140887ed9bbc02d5b6638a2e928deaa70c23a6 Author: David Santos Date: 2016-10-07T07:19:13Z Add publishedEndpointUrl capability to rsServer Endpoint definition allows to specify publishedEndpointUrl, but this attribute is not available in rsServer element. This attribute (publishedEndpointUrl) is used by WadlGenerator to compose baseUri resource in the WADL. If you are deploying a REST service in an internal net but exposed to internet (through reverse proxy, for example) , WADL should inform such publishing address (in a similar way that you can do it with WSDL in camel-cxf). Actually, since no publishedEndpointUrl can be used in rsServer definition, baseUri is built with HTTP request information. That means internal network information could be leaked in a reverse proxy scenario. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---