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

I don&#39;t know if this is currently working or not as changing a portlet<br>
to be public still doesn&#39;t make that portlet appear to users in their<br>
dashboards.<br>
<div class="im"><br>
&gt;<br>
&gt;         -Is it meant to set the default permission of a portlet<br>
&gt;         instance when<br>
&gt;         added to a page (also doesn&#39;t do this, the default access<br>
&gt;         permission for<br>
&gt;         a portlet instance is set to public).<br>
&gt;<br>
&gt; Yes, it is. doesn&#39;t it work for you ?<br>
<br>
</div>no it doesn&#39;t work for me, it always makes the permission public<br>
regardless of what the permission of the portlet actually is.<br>
<br>
I have updated the original jira with this information<br>
<a href="http://jira.jboss.org/browse/GTNPORTAL-1137" target="_blank">http://jira.jboss.org/browse/GTNPORTAL-1137</a><br></blockquote><div><br>i can reproduce it now and this is considered as a cache issue at UI level. it means to require a re-login after changing permissions in Application Registry. we are going to fix it soon<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> </div></blockquote><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">
&gt; Note that if a portlet is not setting any access permission == Public<br>
<br>
</div>ok, why don&#39;t we just set the portlet to be public in the first place?<br>
Its confusing that the default access permission in the application<br>
registry is not set to public, yet this is assumed to be the default<br>
state.<br></blockquote><div><br>yes, we should. i addressed it to <a href="https://jira.jboss.org/jira/browse/GTNPORTAL-1239">https://jira.jboss.org/jira/browse/GTNPORTAL-1239</a><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>
Also, we should change the wording in the application registry for this<br>
to make it clear what its meant to do.<br>
(<a href="http://jira.jboss.org/browse/GTNPORTAL-1229" target="_blank">http://jira.jboss.org/browse/GTNPORTAL-1229</a>)<br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt;         I am trying to figure out the designed behaviour before<br>
&gt;         opening jiras<br>
&gt;         about these issues.<br>
&gt;<br>
&gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         &gt;         + It does seem to prevent a user from<br>
&gt;         viewing a<br>
&gt;         &gt;         gadget as a<br>
&gt;         &gt;         &gt;         portlet on the dashboard page, but they<br>
&gt;         can still<br>
&gt;         &gt;         add the<br>
&gt;         &gt;         &gt;         gadget as a gadget to the dashboard page.<br>
&gt;         This<br>
&gt;         &gt;         behaviour is<br>
&gt;         &gt;         &gt;         expected too except we re-define it :-)<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         I think we should have some sort of gadget<br>
&gt;         permission settings<br>
&gt;         &gt;         for the<br>
&gt;         &gt;         dashboard, and we should also see if we can restrict<br>
&gt;         gadget<br>
&gt;         &gt;         access from<br>
&gt;         &gt;         outside sources. The gadget xml files are publicly<br>
&gt;         available<br>
&gt;         &gt;         for anyone<br>
&gt;         &gt;         to access.<br>
&gt;         &gt;         Even if we could restrict what gadget a user can put<br>
&gt;         on the<br>
&gt;         &gt;         dashboard,<br>
&gt;         &gt;         they could just add the gadget back using the gadget<br>
&gt;         url.<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         _______________________________________________<br>
&gt;         &gt;         &gt;                 gatein-dev mailing list<br>
&gt;         &gt;         &gt;                 <a href="mailto:gatein-dev@lists.jboss.org">gatein-dev@lists.jboss.org</a><br>
&gt;         &gt;         &gt;<br>
&gt;         &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;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         --<br>
&gt;         &gt;         &gt;         Tran The Trong<br>
&gt;         &gt;         &gt;         eXo Platform SAS<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt; Tran The Trong<br>
&gt;         &gt;         &gt; eXo Platform SAS<br>
&gt;         &gt;<br>
&gt;         &gt;<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; --<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>