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 2F8C2200D1E for ; Wed, 18 Oct 2017 17:57:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2DF9C160BEA; Wed, 18 Oct 2017 15:57:05 +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 746A81609EE for ; Wed, 18 Oct 2017 17:57:04 +0200 (CEST) Received: (qmail 75497 invoked by uid 500); 18 Oct 2017 15:57:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 75486 invoked by uid 99); 18 Oct 2017 15:57:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2017 15:57:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B354ACB4A4 for ; Wed, 18 Oct 2017 15:57:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nZdyqdX5zeEd for ; Wed, 18 Oct 2017 15:57:02 +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 C7B3B5FD33 for ; Wed, 18 Oct 2017 15:57:01 +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 7F194E0665 for ; Wed, 18 Oct 2017 15:57:00 +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 2F5BA24360 for ; Wed, 18 Oct 2017 15:57:00 +0000 (UTC) Date: Wed, 18 Oct 2017 15:57:00 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19020) TestXmlParsing exception checking relies on a particular xml implementation without declaring it. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 Oct 2017 15:57:05 -0000 [ https://issues.apache.org/jira/browse/HBASE-19020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209574#comment-16209574 ] Hudson commented on HBASE-19020: -------------------------------- FAILURE: Integrated in Jenkins build HBase-1.3-JDK7 #310 (See [https://builds.apache.org/job/HBase-1.3-JDK7/310/]) HBASE-19020 HBase Rest test for xml parsing external entities should not (busbey: rev 90249f1101e1581df8bb93482f952f4bb96270a7) * (edit) hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/client/TestXmlParsing.java > TestXmlParsing exception checking relies on a particular xml implementation without declaring it. > ------------------------------------------------------------------------------------------------- > > Key: HBASE-19020 > URL: https://issues.apache.org/jira/browse/HBASE-19020 > Project: HBase > Issue Type: Bug > Components: dependencies, REST > Affects Versions: 1.3.0, 1.4.0, 1.2.5, 1.1.9, 2.0.0-alpha-1 > Reporter: Sean Busbey > Assignee: Sean Busbey > Fix For: 1.4.0, 1.3.2, 1.5.0, 1.2.7, 2.0.0-beta-1, 1.1.13 > > Attachments: HBASE-19020.0.patch > > > The test added in HBASE-17424 is overly specific: > {code} > @Test > public void testFailOnExternalEntities() throws Exception { > final String externalEntitiesXml = > "" > + " ] >" > + " &xee;"; > Client client = mock(Client.class); > RemoteAdmin admin = new RemoteAdmin(client, HBaseConfiguration.create(), null); > Response resp = new Response(200, null, externalEntitiesXml.getBytes()); > when(client.get("/version/cluster", Constants.MIMETYPE_XML)).thenReturn(resp); > try { > admin.getClusterVersion(); > fail("Expected getClusterVersion() to throw an exception"); > } catch (IOException e) { > final String exceptionText = StringUtils.stringifyException(e); > final String expectedText = "The entity \"xee\" was referenced, but not declared."; > LOG.error("exception text: " + exceptionText, e); > assertTrue("Exception does not contain expected text", exceptionText.contains(expectedText)); > } > } > {code} > Specifically, when running against Hadoop 3.0.0-beta1 this test fails because the exception text is different, though I'm still figuring out why. -- This message was sent by Atlassian JIRA (v6.4.14#64029)