Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E2BF1823B for ; Sat, 27 Jun 2015 23:00:11 +0000 (UTC) Received: (qmail 16975 invoked by uid 500); 27 Jun 2015 23:00:06 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 16924 invoked by uid 500); 27 Jun 2015 23:00:06 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 16911 invoked by uid 99); 27 Jun 2015 23:00:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jun 2015 23:00:06 +0000 Date: Sat, 27 Jun 2015 23:00:06 +0000 (UTC) From: "Gera Shegalov (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-12126) Configuration might use ApplicationClassLoader to create XML parser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-12126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gera Shegalov updated HADOOP-12126: ----------------------------------- Target Version/s: 2.8.0 > Configuration might use ApplicationClassLoader to create XML parser > ------------------------------------------------------------------- > > Key: HADOOP-12126 > URL: https://issues.apache.org/jira/browse/HADOOP-12126 > Project: Hadoop Common > Issue Type: Bug > Components: conf > Affects Versions: 2.7.0 > Reporter: Laurent Goujon > Assignee: Laurent Goujon > Attachments: HADOOP-12126.001.patch, HADOOP-12126.002.patch, HADOOP-12126.003.patch > > > {{org.apache.hadoop.conf.Configuration}} creates a new DocumentBuilder to parse the XML config files, but it doesn't specify which classloader to use to discover and instantiate the XML parser. > Because DocumentBuilderFactory relies on ServiceProvider, whose by default, uses the context classloader. If classpath isolation is turned on, one might expect that that Configuration will only load classes from the system classloader, but it turns out that the context classloader is set to ApplicationClassLoader, and that a XML parser might be loaded from the user classpath. -- This message was sent by Atlassian JIRA (v6.3.4#6332)