<br><br><div class="gmail_quote">On 30 April 2010 01:15, Matthew Wringe <span dir="ltr">&lt;<a href="mailto:mwringe@redhat.com">mwringe@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, 2010-04-29 at 14:52 +0700, Trong Tran wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 29 April 2010 10:02, Trong Tran &lt;<a href="mailto:trongtt@gmail.com">trongtt@gmail.com</a>&gt; wrote:<br>
&gt;         Hi Matthew,<br>
&gt;<br>
&gt;         On 29 April 2010 01:58, Matthew Wringe &lt;<a href="mailto:mwringe@redhat.com">mwringe@redhat.com</a>&gt;<br>
&gt;         wrote:<br>
&gt;                 I created<br>
&gt;                 <a href="https://jira.jboss.org/jira/browse/GTNPORTAL-1137" target="_blank">https://jira.jboss.org/jira/browse/GTNPORTAL-1137</a> but<br>
&gt;                 it seems<br>
&gt;                 like it might be somewhat working depending on what it<br>
&gt;                 actually means.<br>
&gt;<br>
&gt;                 What is the permission setting in application registry<br>
&gt;                 suppose to do<br>
&gt;                 actually do? Is it suppose to prevent a user from<br>
&gt;                 accessing the content<br>
&gt;                 or to prevent a user from adding that type of portlet<br>
&gt;                 to a page?<br>
&gt;<br>
&gt;         It prevents a user from accessing the content<br>
&gt;<br>
&gt;<br>
&gt;                 Each portlet or gadget can specify a &#39;access<br>
&gt;                 permission&#39;, but this<br>
&gt;                 doesn&#39;t seem to prevent users from viewing the<br>
&gt;                 application.<br>
&gt;<br>
&gt;                 What it does seem to do is if an unauthorized user<br>
&gt;                 tries to add this<br>
&gt;                 portlet to a page, they can add the portlet, they just<br>
&gt;                 can&#39;t view the<br>
&gt;                 added portlet on the page. This doesn&#39;t seem like<br>
&gt;                 expected behaviour<br>
&gt;                 either.<br>
&gt;<br>
&gt;         now this behaviour is expected actually except we re-define<br>
&gt;         clearly what it should be<br>
<br>
</div></div>The only problem I see with this is that the user probably shouldn&#39;t be<br>
able to see the portlet to add to the page.<br>
<br>
The fact that when the unauthorized user adds the portlet to the page,<br>
and then cannot access the portlet on the page does seem to be correct<br>
behavior.<br></blockquote><div><br>Yes, i agreed that user should not be able to add a portlet to the page if he does not have access permission to that portlet<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
The problem is what root creates a page, adds a portlet to it and then<br>
unauthorized users can still access it.<br>
<div class="im"><br>
&gt;         About the GTNPORTAL-1137 :<br>
&gt;         + I can change the permission of a portlet and still have an<br>
&gt;         unauthorized user view its content. This is considered as a<br>
&gt;         bug and we are checking it<br>
&gt;<br>
&gt;<br>
&gt; i can not reproduce it. in my test, the unauthorized user can not view<br>
&gt; the content of a portlet if its access permission is set up<br>
<br>
</div>Are you following the steps in the jira?<br>
<br>
please note that I am talking about changing the access permission of<br>
the portlet (ie set in the app registry) not changing the permission of<br>
a particular portlet instance on a page.<br></blockquote><div><br>changing the access permission in Application Registry does not affect to its existing portlet instance<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im"><br>
&gt;         + It does seem to prevent a user from viewing a gadget as a<br>
&gt;         portlet on the dashboard page, but they can still add the<br>
&gt;         gadget as a gadget to the dashboard page. This behaviour is<br>
&gt;         expected too except we re-define it :-)<br>
<br>
</div>I think we should have some sort of gadget permission settings for the<br>
dashboard, and we should also see if we can restrict gadget access from<br>
outside sources. The gadget xml files are publicly available for anyone<br>
to access.<br>
Even if we could restrict what gadget a user can put on the dashboard,<br>
they could just add the gadget back using the gadget url.<br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt;                 _______________________________________________<br>
&gt;                 gatein-dev mailing list<br>
&gt;                 <a href="mailto:gatein-dev@lists.jboss.org">gatein-dev@lists.jboss.org</a><br>
&gt;                 <a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         Tran The Trong<br>
&gt;         eXo Platform SAS<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Tran The Trong<br>
&gt; eXo Platform SAS<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tran The Trong<br>eXo Platform SAS<br>