ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower" <tbeerbo...@hortonworks.com>
Subject Re: Review Request 34288: Views : "cannot load permission" error when accessing the ambari view
Date Fri, 15 May 2015 19:51:43 GMT


> On May 15, 2015, 7:39 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ResourceEntity.java,
line 59
> > <https://reviews.apache.org/r/34288/diff/1/?file=961537#file961537line59>
> >
> >     I'm not familiar with the resource->privilege relationship. Can a two resources
possible share the same privilege?

A privilege is an association between a single principal, permission and resource (e.g. John
has OPERATOR permission on cluster C1)

So, a privilege is associated with a single resource, but a resource can be associated with
many privileges.


- Tom


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34288/#review83963
-----------------------------------------------------------


On May 15, 2015, 7:33 p.m., Tom Beerbower wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34288/
> -----------------------------------------------------------
> 
> (Updated May 15, 2015, 7:33 p.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley and Nate Cole.
> 
> 
> Bugs: AMBARI-11183
>     https://issues.apache.org/jira/browse/AMBARI-11183
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> "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.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ResourceEntity.java
04dbd76 
>   ambari-server/src/test/java/org/apache/ambari/server/orm/entities/ResourceEntityTest.java
35724d3 
> 
> Diff: https://reviews.apache.org/r/34288/diff/
> 
> 
> Testing
> -------
> 
> Manual tested.
> 
> Added new unit test.
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Tom Beerbower
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message