From issues-return-191172-archive-asf-public=cust-asf.ponee.io@hive.apache.org Wed May 27 05:46:04 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D079A180626 for ; Wed, 27 May 2020 07:46:03 +0200 (CEST) Received: (qmail 26471 invoked by uid 500); 27 May 2020 05:46:03 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 26414 invoked by uid 99); 27 May 2020 05:46:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2020 05:46:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CE893E2F68 for ; Wed, 27 May 2020 05:46:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 26F4578032D for ; Wed, 27 May 2020 05:46:00 +0000 (UTC) Date: Wed, 27 May 2020 05:46:00 +0000 (UTC) From: "Naresh P R (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-23461) Needs to capture input/output entities in explainRewrite MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-23461?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Naresh P R updated HIVE-23461: ------------------------------ Attachment: HIVE-23461.1.patch > Needs to capture input/output entities in explainRewrite > -------------------------------------------------------- > > Key: HIVE-23461 > URL: https://issues.apache.org/jira/browse/HIVE-23461 > Project: Hive > Issue Type: Bug > Components: Authorization > Reporter: Wenchao Li > Assignee: Naresh P R > Priority: Major > Attachments: HIVE-23461.1.patch, HIVE-23461.patch > > > HIVE-18778(CVE-2018-1314) capture input/output entitles in explain semant= ic analyzer so when a query is disallowed by Ranger, Sentry or Sqlstd autho= rizizer, the corresponding explain statement will be disallowed either. > However, ExplainSQRewriteSemanticAnalyzer also uses an instance of DDLSem= anticAnalyzer to analyze the explain rewrite query. > {code:java} > SemanticAnalyzer sem =3D (SemanticAnalyzer) > SemanticAnalyzerFactory.get(queryState, input); > sem.analyze(input, ctx); > sem.validate();{code} > =C2=A0 > The inputs/outputs entities for this query are never set on the instance = of ExplainSQRewriteSemanticAnalyzer itself and thus is not propagated into = the HookContext in the calling Driver code. It is a similar issue to HIVE-1= 8778. -- This message was sent by Atlassian Jira (v8.3.4#803005)