[ 
https://issues.apache.org/jira/browse/AMBARI-14005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15021178#comment-15021178
 ] 

Hudson commented on AMBARI-14005:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #3887 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/3887/])
AMBARI-14005. Fix translation of different view resource type entities (rlevas: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=8ce995ac025d673430ccfe5667aeab586e03567b])
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UserPrivilegeResourceProviderTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AuthorizationHelper.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UserPrivilegeResourceProvider.java
* 
ambari-server/src/test/java/org/apache/ambari/server/security/authorization/RoleAuthorizationTest.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AmbariPrivilegeResourceProviderTest.java
* ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
* 
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/RoleAuthorization.java
* 
ambari-server/src/test/java/org/apache/ambari/server/security/authorization/ResourceTypeTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/ResourceType.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AmbariPrivilegeResourceProvider.java


> Fix translation of different view 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
>            Priority: Blocker
>              Labels: rbac
>             Fix For: 2.2.0
>
>         Attachments: AMBARI-14005_trunk_01.patch
>
>
> Fix translation of different view 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)

Reply via email to