-
Type:
Task
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Master
-
Labels:
-
Git Pull Request:
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.