Jahia Dev Forum > Portlet Role Mapping

0 (0 Good)
0 (0 Bad)

Portlet Role Mapping

by  yuva »  2011/08/01 02:42

 

Hi,

I am trying to define roles for portlet using Jahia_xCM_v6.5.0.0. I can't  get the option of  "Manage Roles" in "Server Settings" to define roles as shown in the following URL

http://www.jahia.com/cms/home/community/documentation/portlet-guide/using-in-a-jahia-page/portlet-roles-and-jahia-permissi.html

Please Advice 

How to assign roles for portlets

Thanks in Advance

Yuva

  • Portlet Role Mapping
    2011/08/01 02:42

    yuva <p> &nbsp;</p> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <p> Hi,</p> <p> I am trying to define roles for portlet using&nbsp;Jahia_xCM_v6.5.0.0. I can&#39;t &nbsp;get the option of &nbsp;&quot;Manage Roles&quot; in &quot;Server Settings&quot; to define roles as shown in the following URL</p> <p> <a class="moz-txt-link-freetext" href="http://www.jahia.com/cms/home/community/documentation/portlet-guide/using-in-a-jahia-page/portlet-roles-and-jahia-permissi.html">http://www.jahia.com/cms/home/community/documentation/portlet-guide/using-in-a-jahia-page/portlet-roles-and-jahia-permissi.html</a></p> <p> Please Advice&nbsp;</p> <p> How to assign roles for portlets</p> <p> Thanks in Advance</p> <p> Yuva</p> </div>

  • Number of messages  3
    Registration date Aug 1, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Portlet Role Mapping

    by  faissah »  2011/08/30 16:06

    Hello Yuva,

    The "Manage Roles" is a feature of the Advanced Stack. It is not provided in the standard stack. You need portlets with standard roles:

     - reader : view pernission

     - editor : creation/editon permission

     

    Regards,

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    0 (0 Good)
    0 (0 Bad)

    JSR 168 portlet causes AccessControlException

    by  mascarim »  2011/09/14 00:21

    Hi. After deploying a JSR-168 portlet to a page using Jahia_xCM_v6.5.0_r38205, and without making any modifications to the default roles associated with the portlet (which were 'read' IIRC), I'm seeing the following exception:

    jahia.log:javax.jcr.security.AccessControlException: Unknown privilege {http://www.jahia.org/portlets/MyPortlet/MyPortlet}view

    Any reference to any page on the site, public or private, causes Jahia to redirect to the login page. If I actually athenticate with a non-super user, I then get a 403 for the public page. If I authenticate with a super user, the content is rendered.

    Exporting, deleting, and re-importing the site has no effect, and the exception persists. I assume it exists in the database independent of the site content.

    Thoughts?

    Mike

     

  • JSR 168 portlet causes AccessControlException
    2011/09/14 00:21

    mascarim <p> Hi. After deploying a JSR-168 portlet to a page using Jahia_xCM_v6.5.0_r38205, and without making any modifications to the default roles associated with the portlet (which were &#39;read&#39; IIRC), I&#39;m seeing the following exception:</p> <p> jahia.log:javax.jcr.security.AccessControlException: Unknown privilege {http://www.jahia.org/portlets/MyPortlet/MyPortlet}view</p> <p> Any reference to any page on the site, public or private, causes Jahia to redirect to the login page. If I actually athenticate with a non-super user, I then get a 403 for the public page. If I authenticate with a super user, the content is rendered.</p> <p> Exporting, deleting, and re-importing the site has no effect, and the exception persists. I assume it exists in the database independent of the site content.</p> <p> Thoughts?</p> <p> Mike</p> <p> &nbsp;</p>

  • Number of messages  2
    Registration date Sep 14, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: JSR 168 portlet causes AccessControlException

    by  mascarim »  2011/09/14 23:41

    Hi. After deploying a JSR-168 portlet to a page using Jahia_xCM_v6.5.0_r38205, and without making any modifications to the default roles associated with the portlet (which were 'read' IIRC), I'm seeing the following exception:

    jahia.log:javax.jcr.security.AccessControlException: Unknown privilege {http://www.jahia.org/portlets/MyPortlet/MyPortlet}view

    Any reference to any page on the site, public or private, causes Jahia to redirect to the login page. If I actually athenticate with a non-super user, I then get a 403 for the public page. If I authenticate with a super user, the content is rendered.

    Exporting, deleting, and re-importing the site has no effect, and the exception persists. I assume it exists in the database independent of the site content.

    Thoughts?

    Mike

     


    Replying to my own post for others. It turns out the problem is associated with the order in which the apps are deployment by Tomcat. If I "touch" the portlet war forcing a redeployment after Jahia has been initialized, the problem goes away. I'm not sure exactly how Jahia's privilege system interoperates with Pluto, but there's definitely an "order of deployment" issue here. Nevertheless, touching the portlet wars after Jahia has started has never failed to result in an operational site.

     


     

  • Re: JSR 168 portlet causes AccessControlException
    2011/09/14 23:41

    mascarim <blockquote> <p> Hi. After deploying a JSR-168 portlet to a page using Jahia_xCM_v6.5.0_r38205, and without making any modifications to the default roles associated with the portlet (which were &#39;read&#39; IIRC), I&#39;m seeing the following exception:</p> <p> jahia.log:javax.jcr.security.AccessControlException: Unknown privilege {http://www.jahia.org/portlets/MyPortlet/MyPortlet}view</p> <p> Any reference to any page on the site, public or private, causes Jahia to redirect to the login page. If I actually athenticate with a non-super user, I then get a 403 for the public page. If I authenticate with a super user, the content is rendered.</p> <p> Exporting, deleting, and re-importing the site has no effect, and the exception persists. I assume it exists in the database independent of the site content.</p> <p> Thoughts?</p> <p> Mike</p> <p> &nbsp;</p> </blockquote> <p> <br /> Replying to my own post for others. It turns out the problem is associated with the order in which the apps are deployment by Tomcat. If I &quot;touch&quot; the portlet war forcing a redeployment after Jahia has been initialized, the problem goes away. I&#39;m not sure exactly how Jahia&#39;s privilege system interoperates with Pluto, but there&#39;s definitely an &quot;order of deployment&quot; issue here. Nevertheless, touching the portlet wars after Jahia has started has never failed to result in an operational site.</p> <p> &nbsp;</p> <p> <br /> &nbsp;</p>

  • Number of messages  2
    Registration date Sep 14, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: JSR 168 portlet causes AccessControlException

    by  rvt »  2011/09/16 17:05

    Mike,

    could you make a entry in http://jira.jahia.org/ ?
    This way teh developers can take a look at it and fix this if needed.

    Ries

  • Re: Re: JSR 168 portlet causes AccessControlException
    2011/09/16 17:05

    rvt <p> Mike,</p> <p> could you make a entry in <a href="http://jira.jahia.org/">http://jira.jahia.org/</a>&nbsp;?<br /> This way teh developers can take a look at it and fix this if needed.</p> <p> Ries</p>

  • Number of messages  185
    Registration date Sep 16, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page