Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-14762

Clicking on Directory search result in Search portlet causes permission error to be displayed

    Details

      Description

      To reproduce:

      • Grant VIEW permission on the "User" entity for a particular user.
      • Login as that user and use the Search portlet to search for a keyword that matches another user's job title
      • Click on the Directory search result, that represents the user who's job title matches

      If the error still exists, you will see "You do not have the roles required to access this portlet" even though VIEW permission has been granted.

      The workaround is to create a liferay-portlet-ext.xml file with the <add-default-resource>true</add-default-resource> element added, like this:

      <?xml version="1.0"?>
      <!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.0.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_0_0.dtd">

      <liferay-portlet-app>
      <portlet>
      <portlet-name>11</portlet-name>
      <icon>/html/icons/directory.png</icon>
      <struts-path>directory</struts-path>
      <indexer-class>com.liferay.portlet.directory.util.DirectoryIndexer</indexer-class>
      <open-search-class>com.liferay.portlet.directory.util.DirectoryOpenSearchImpl</open-search-class>
      <portlet-url-class>com.liferay.portal.struts.StrutsActionPortletURL</portlet-url-class>
      <use-default-template>false</use-default-template>
      <private-request-attributes>false</private-request-attributes>
      <private-session-attributes>false</private-session-attributes>
      <render-weight>50</render-weight>
      <header-portlet-css>/html/portlet/directory/css/main.jsp</header-portlet-css>
      <css-class-wrapper>portlet-directory</css-class-wrapper>
      <add-default-resource>true</add-default-resource>
      </portlet>
      </liferay-portlet-app>

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 27 weeks, 4 days ago

                  Packages

                  Version Package
                  6.0.X EE