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 9259F200C1B for ; Tue, 14 Feb 2017 22:33:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 90D6C160B5F; Tue, 14 Feb 2017 21:33:18 +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 DBC80160B45 for ; Tue, 14 Feb 2017 22:33:17 +0100 (CET) Received: (qmail 41526 invoked by uid 500); 14 Feb 2017 21:33:17 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 41515 invoked by uid 99); 14 Feb 2017 21:33:17 -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; Tue, 14 Feb 2017 21:33:17 +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 8F727C0D33 for ; Tue, 14 Feb 2017 21:33:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ulkivWLzAH8W for ; Tue, 14 Feb 2017 21:33:15 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6AAE85F1B3 for ; Tue, 14 Feb 2017 21:33:15 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EAD30E0059 for ; Tue, 14 Feb 2017 21:32:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A622F21D63 for ; Tue, 14 Feb 2017 21:32:41 +0000 (UTC) Date: Tue, 14 Feb 2017 21:32:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-3355) nifi.web.http(s).host set to 0.0.0.0 breaks request replication when clustered MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Feb 2017 21:33:18 -0000 [ https://issues.apache.org/jira/browse/NIFI-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15866729#comment-15866729 ] ASF GitHub Bot commented on NIFI-3355: -------------------------------------- Github user jtstorck commented on a diff in the pull request: https://github.com/apache/nifi/pull/1508#discussion_r101148418 --- Diff: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java --- @@ -590,28 +619,59 @@ private void configureConnectors(final Server server) throws ServerConfiguration logger.info("Configuring Jetty for HTTPs on port: " + port); - // add some secure config - final HttpConfiguration httpsConfiguration = new HttpConfiguration(httpConfiguration); - httpsConfiguration.setSecureScheme("https"); - httpsConfiguration.setSecurePort(props.getSslPort()); - httpsConfiguration.addCustomizer(new SecureRequestCustomizer()); + final List serverConnectors = Lists.newArrayList(); - // build the connector - final ServerConnector https = new ServerConnector(server, - new SslConnectionFactory(createSslContextFactory(), "http/1.1"), - new HttpConnectionFactory(httpsConfiguration)); + final Map httpsNetworkInterfaces = props.getHttpsNetworkInterfaces(); + if (httpsNetworkInterfaces.isEmpty()) { --- End diff -- The following comment from line 578 applies here as well. [https://github.com/apache/nifi/pull/1508/commits/88520369d910dff61892b86841dc9eab28bf03e3#r101147915](url) > nifi.web.http(s).host set to 0.0.0.0 breaks request replication when clustered > ------------------------------------------------------------------------------ > > Key: NIFI-3355 > URL: https://issues.apache.org/jira/browse/NIFI-3355 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 1.0.0, 1.1.0, 1.1.1, 1.0.1 > Reporter: Jeff Storck > Assignee: Jeff Storck > > The value of nifi.web.http(s).host is used as the node's address (combined with the configured port) and is the address used for request replication. When nodes are clustered, and 0.0.0.0 is used to bind Jetty to all network interfaces, requests are replicated to 0.0.0.0:8080 (for example) and are unable to be completed. -- This message was sent by Atlassian JIRA (v6.3.15#6346)