Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D7A01805B for ; Sat, 21 Nov 2015 12:23:11 +0000 (UTC) Received: (qmail 78090 invoked by uid 500); 21 Nov 2015 12:23:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 78061 invoked by uid 500); 21 Nov 2015 12:23:11 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 77825 invoked by uid 99); 21 Nov 2015 12:23:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2015 12:23:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E665E2C0453 for ; Sat, 21 Nov 2015 12:23:10 +0000 (UTC) Date: Sat, 21 Nov 2015 12:23:10 +0000 (UTC) From: "Robert Levas (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-14005) Fix translation of different resource type entities to all be of type VIEW MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Robert Levas created AMBARI-14005: ------------------------------------- Summary: Fix translation of different resource type entities to all be of type VIEW Key: AMBARI-14005 URL: https://issues.apache.org/jira/browse/AMBARI-14005 Project: Ambari Issue Type: Bug Components: ambari-server Affects Versions: 2.2.0 Reporter: Robert Levas Assignee: Robert Levas Fix For: 2.2.0 Fix translation of different resource type entities to all be of type VIEW. When an Ambari view is added to Ambari, a new resource type ({{adminresourcetype}}) is added. Each of these types need to resolve to represent a _view_ resource ({{org.apache.ambari.server.security.authorization.ResourceType#VIEW}} so that authorization checks can be performed properly. For example: {noformat} resource_type_id | resource_type_name ------------------+--------------------------- 1 | AMBARI 2 | CLUSTER 3 | VIEW 5 | ADMIN_VIEW{2.1.2} 6 | FILES{1.0.0} 7 | PIG{1.0.0} 8 | CAPACITY-SCHEDULER{1.0.0} 9 | TEZ{0.7.0.2.3.2.0-377} 10 | SLIDER{2.0.0} 11 | HIVE{1.0.0} 55 | ADMIN_VIEW{2.2.0.0} 56 | TEZ{0.7.0.2.3.2.0-3539} {noformat} The translation needs to be be: {noformat} AMBARI | ResourceType.AMBARI CLUSTER | ResourceType.CLUSTER VIEW | ResourceType.VIEW ADMIN_VIEW{2.1.2} | ResourceType.VIEW FILES{1.0.0} | ResourceType.VIEW PIG{1.0.0} | ResourceType.VIEW CAPACITY-SCHEDULER{1.0.0} | ResourceType.VIEW TEZ{0.7.0.2.3.2.0-377} | ResourceType.VIEW SLIDER{2.0.0} | ResourceType.VIEW HIVE{1.0.0} | ResourceType.VIEW ADMIN_VIEW{2.2.0.0} | ResourceType.VIEW TEZ{0.7.0.2.3.2.0-3539} | ResourceType.VIEW {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)