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

Use the same request as in the JSP from the ManagementToolbarDisplayContext classes

    Details

      Description

      I have found that requests that come from `liferayPortletRequest.getHttpServletRequest()` do not behave the same as the original `request` available in the JSPs.

      To avoid unexpected issues we should replace every use of `liferayPortletRequest.getHttpServletRequest()` inside ManagementToolbarDisplayContext classes with the request from the JSP via constructor.

      The reason for this is that parameters added this way:

      <liferay-util:include page=“/bookmarks/toolbar.jsp” servletContext=“<%= application %>“>
          <liferay-util:param name=“searchContainerId” value=“entries” />
      </liferay-util:include>
      

      En up creating a wrapped request that does not correspond to the one retrieved from the liferayPortletRequest.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            alejandro.tardin Alejandro Tardín
            Recent user:
            Rubén Heras
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master