[
https://issues.apache.org/jira/browse/AMBARI-11183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14546940#comment-14546940
]
Hudson commented on AMBARI-11183:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #2620 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2620/])
AMBARI-11183 - Views : cannot load permission error when accessing the ambari
view (tbeerbower) (tbeerbower:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=fcbde3243792a49a269ded9fd8d64638d71a0b5e)
*
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ResourceEntity.java
*
ambari-server/src/test/java/org/apache/ambari/server/orm/entities/ResourceEntityTest.java
> Views : "cannot load permission" error when accessing the ambari view
> ---------------------------------------------------------------------
>
> Key: AMBARI-11183
> URL: https://issues.apache.org/jira/browse/AMBARI-11183
> Project: Ambari
> Issue Type: Task
> Reporter: Tom Beerbower
> Assignee: Tom Beerbower
> Fix For: 2.1.0
>
>
> "cannot load permission" error when accessing the ambari view
> The problem is that there are privileges in the DB that do not have an
> associated resource.
> To reproduce:
> Delete jars of views which have an instance left in ambari, from
> /var/lib/ambari-server/resources/views/ and restart ambari.
> {code}
> mysql> select * from adminprivilege left join adminresource on
> adminprivilege.resource_id = adminresource.resource_id where
> adminresource.resource_id is null;
> +--------------+---------------+-------------+--------------+-------------+------------------+
> | privilege_id | permission_id | resource_id | principal_id | resource_id |
> resource_type_id |
> +--------------+---------------+-------------+--------------+-------------+------------------+
> | 46 | 4 | 7 | 9 | NULL |
> NULL |
> | 47 | 4 | 7 | 1003 | NULL |
> NULL |
> +--------------+---------------+-------------+--------------+-------------+------------------+
> 2 rows in set (0.00 sec)
> mysql> select * from adminresource;
> +-------------+------------------+
> | resource_id | resource_type_id |
> +-------------+------------------+
> | 1 | 1 |
> | 3 | 2 |
> | 4 | 5 |
> | 8 | 12 |
> | 6 | 8 |
> +-------------+------------------+
> 5 rows in set (0.00 sec)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)