Navigation links fail for LDAP groups in EPP 5

Solution Unverified - Updated -

Issue

  • We have moved to LDAP from default settings. Then I cannot access the Administration page. It responds with blank content.

  • We have set up EPP 5 with LDAP, and we have also changed the permissions in all the files to match our group structure from LDAP. For this, we changed /platform/administrators to /acme/roles/admins in various *.xml files under 02portal.war.

We also tried to provide a custom navigation for the users in the LDAP groups. For instance, for our LDAP admins, we added the following files:

   gatein.ear/02portal.war/WEB-INF/conf/portal/group/acme/roles/admins/navigation.xml
   gatein.ear/02portal.war/WEB-INF/conf/portal/group/acme/roles/admins/pages.xml

While the content is almost the same as in the files under /platform/administrators, the navigation links fail. When logged in as an LDAP admin user, we see the Group navigation, but when we click on a link, we see the following error in the logs and a blank screen instead of the target page:

    ERROR [PortletApplicationController] Error while rendering the porlet
    org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=24],
        data=  boolean userCouldEditPage = uicomponent.hasEditPermissionOnPage();] 
        for template app:/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
            ... 

    Caused by: java.lang.NullPointerException
            at org.exoplatform.toolbar.webui.component.UIAdminToolbarPortlet.hasEditPermissionOnPage(UIAdminToolbarPortlet.java:100)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
            at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
            at UIAdminToolbarPortlet.run(UIAdminToolbarPortlet.gtmpl:24)
            at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)
            ... 203 more

Environment

  • JBoss Enterprise Portal Platform (EPP)
    • 5.0
    • 5.1
    • 5.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.