<br><br><div class="gmail_quote">On 14 May 2010 22:21, 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 Wed, 2010-05-12 at 12:06 +0700, Trong Tran wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 30 April 2010 01:15, Matthew Wringe &lt;<a href="mailto:mwringe@redhat.com">mwringe@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt;         On Thu, 2010-04-29 at 14:52 +0700, Trong Tran wrote:<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; On 29 April 2010 10:02, Trong Tran &lt;<a href="mailto:trongtt@gmail.com">trongtt@gmail.com</a>&gt;<br>
&gt;         wrote:<br>
&gt;         &gt;         Hi Matthew,<br>
&gt;         &gt;<br>
&gt;         &gt;         On 29 April 2010 01:58, Matthew Wringe<br>
&gt;         &lt;<a href="mailto:mwringe@redhat.com">mwringe@redhat.com</a>&gt;<br>
&gt;         &gt;         wrote:<br>
&gt;         &gt;                 I created<br>
&gt;         &gt;<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;         &gt;                 it seems<br>
&gt;         &gt;                 like it might be somewhat working depending<br>
&gt;         on what it<br>
&gt;         &gt;                 actually means.<br>
&gt;         &gt;<br>
&gt;         &gt;                 What is the permission setting in<br>
&gt;         application registry<br>
&gt;         &gt;                 suppose to do<br>
&gt;         &gt;                 actually do? Is it suppose to prevent a user<br>
&gt;         from<br>
&gt;         &gt;                 accessing the content<br>
&gt;         &gt;                 or to prevent a user from adding that type<br>
&gt;         of portlet<br>
&gt;         &gt;                 to a page?<br>
&gt;         &gt;<br>
&gt;         &gt;         It prevents a user from accessing the content<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;                 Each portlet or gadget can specify a &#39;access<br>
&gt;         &gt;                 permission&#39;, but this<br>
&gt;         &gt;                 doesn&#39;t seem to prevent users from viewing<br>
&gt;         the<br>
&gt;         &gt;                 application.<br>
&gt;         &gt;<br>
&gt;         &gt;                 What it does seem to do is if an<br>
&gt;         unauthorized user<br>
&gt;         &gt;                 tries to add this<br>
&gt;         &gt;                 portlet to a page, they can add the portlet,<br>
&gt;         they just<br>
&gt;         &gt;                 can&#39;t view the<br>
&gt;         &gt;                 added portlet on the page. This doesn&#39;t seem<br>
&gt;         like<br>
&gt;         &gt;                 expected behaviour<br>
&gt;         &gt;                 either.<br>
&gt;         &gt;<br>
&gt;         &gt;         now this behaviour is expected actually except we<br>
&gt;         re-define<br>
&gt;         &gt;         clearly what it should be<br>
&gt;<br>
&gt;<br>
&gt;         The only problem I see with this is that the user probably<br>
&gt;         shouldn&#39;t be<br>
&gt;         able to see the portlet to add to the page.<br>
&gt;<br>
&gt;         The fact that when the unauthorized user adds the portlet to<br>
&gt;         the page,<br>
&gt;         and then cannot access the portlet on the page does seem to be<br>
&gt;         correct<br>
&gt;         behavior.<br>
&gt;<br>
&gt; Yes, i agreed that user should not be able to add a portlet to the<br>
&gt; page if he does not have access permission to that portlet<br>
&gt;<br>
&gt;<br>
&gt;         The problem is what root creates a page, adds a portlet to it<br>
&gt;         and then<br>
&gt;         unauthorized users can still access it.<br>
&gt;<br>
&gt;         &gt;         About the GTNPORTAL-1137 :<br>
&gt;         &gt;         + I can change the permission of a portlet and still<br>
&gt;         have an<br>
&gt;         &gt;         unauthorized user view its content. This is<br>
&gt;         considered as a<br>
&gt;         &gt;         bug and we are checking it<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; i can not reproduce it. in my test, the unauthorized user<br>
&gt;         can not view<br>
&gt;         &gt; the content of a portlet if its access permission is set up<br>
&gt;<br>
&gt;<br>
&gt;         Are you following the steps in the jira?<br>
&gt;<br>
&gt;         please note that I am talking about changing the access<br>
&gt;         permission of<br>
&gt;         the portlet (ie set in the app registry) not changing the<br>
&gt;         permission of<br>
&gt;         a particular portlet instance on a page.<br>
&gt;<br>
&gt; changing the access permission in Application Registry does not affect<br>
&gt; to its existing portlet instance<br>
<br>
</div></div>I am still confused over what is happening here and what the designed<br>
behaviour is suppose to be.<br>
<br>
What I would expect the access permission in the application registry to<br>
do is to set the permission at the portlet level (not portlet instance<br>
level). This permission would override any portlet instance access<br>
permission. So each portlet would need to have both permissions be valid<br>
before allowing access to the portlet.<br>
So if I have my portal setup and I decide that a particular portlet<br>
should only be view by a specific group of people, then I set that<br>
permission in the application registry and all portlet instances should<br>
only be accesible by that group.<br>
I shouldn&#39;t need to go through all the portlet instances and manually<br>
change their permissions (and then periodically go through and check<br>
permissions to make sure nothing has changed or if a new instance has<br>
been added with the wrong permission).<br>
We need per portlet access permissions.<br>
<br>
It sounds like this is not how its suppose to work, and that it was<br>
designed to work in another manner. We need to at least change the<br>
wording in the application registry page to something other than &#39;access<br>
permission&#39;, its dangerous to use that term here when it doesn&#39;t prevent<br>
user access to that particular portlet.<br>
<br>
How is it suppose to work right now?<br>
-Is this meant to prevent a group from adding this particular portlet to<br>
a page? (currently doesn&#39;t do this, if I set the portlet&#39;s access<br>
permission in public, users still can&#39;t see it).<br></blockquote><div><br>Currently No, it is not. But it makes sense to change this behaviour <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

-Is it meant to set the default permission of a portlet instance when<br>
added to a page (also doesn&#39;t do this, the default access permission for<br>
a portlet instance is set to public).<br></blockquote><div><br>Yes, it is. doesn&#39;t it work for you ?<br><br>Note that if a portlet is not setting any access permission == Public<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>
I am trying to figure out the designed behaviour before opening jiras<br>
about these issues.<br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt;         &gt;         + It does seem to prevent a user from viewing a<br>
&gt;         gadget as a<br>
&gt;         &gt;         portlet on the dashboard page, but they can still<br>
&gt;         add the<br>
&gt;         &gt;         gadget as a gadget to the dashboard page. This<br>
&gt;         behaviour is<br>
&gt;         &gt;         expected too except we re-define it :-)<br>
&gt;<br>
&gt;<br>
&gt;         I think we should have some sort of gadget permission settings<br>
&gt;         for the<br>
&gt;         dashboard, and we should also see if we can restrict gadget<br>
&gt;         access from<br>
&gt;         outside sources. The gadget xml files are publicly available<br>
&gt;         for anyone<br>
&gt;         to access.<br>
&gt;         Even if we could restrict what gadget a user can put on the<br>
&gt;         dashboard,<br>
&gt;         they could just add the gadget back using the gadget url.<br>
&gt;<br>
&gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         _______________________________________________<br>
&gt;         &gt;                 gatein-dev mailing list<br>
&gt;         &gt;                 <a href="mailto:gatein-dev@lists.jboss.org">gatein-dev@lists.jboss.org</a><br>
&gt;         &gt;<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;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         --<br>
&gt;         &gt;         Tran The Trong<br>
&gt;         &gt;         eXo Platform SAS<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; --<br>
&gt;         &gt; Tran The Trong<br>
&gt;         &gt; eXo Platform SAS<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Tran The Trong<br>
&gt; eXo Platform SAS<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tran The Trong<br>eXo Platform SAS<br>