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 231F3200B27 for ; Wed, 22 Jun 2016 09:34:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 214D1160A2E; Wed, 22 Jun 2016 07:34:00 +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 9035C160A35 for ; Wed, 22 Jun 2016 09:33:59 +0200 (CEST) Received: (qmail 22165 invoked by uid 500); 22 Jun 2016 07:33:58 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 21954 invoked by uid 99); 22 Jun 2016 07:33:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 07:33:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D32762C14F8 for ; Wed, 22 Jun 2016 07:33:57 +0000 (UTC) Date: Wed, 22 Jun 2016 07:33:57 +0000 (UTC) From: "chillon_m (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13306) add filter doesnot check if it exists MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Jun 2016 07:34:00 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] chillon_m updated HADOOP-13306: ------------------------------- Attachment: 0001-HADOOP-13306.patch > add filter doesnot check if it exists > ------------------------------------- > > Key: HADOOP-13306 > URL: https://issues.apache.org/jira/browse/HADOOP-13306 > Project: Hadoop Common > Issue Type: Bug > Components: net > Affects Versions: 2.5.2 > Reporter: chillon_m > Priority: Minor > Attachments: 0001-HADOOP-13306.patch > > > hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java > line-705:defineFilter() doesnot check filter if it exists.we need check if it exists before add it. > another,No_Cache_Filter added twice when create a HttpServer2 object.I think addDefaultApps() invoke addNoCacheFilter() is unnecessary.because addNoCacheFilter() has already been invoked by createWebAppContext() in httpServer2 constructor method. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org