Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1308

Failure in TCK TestPage017: requestProcessingNonFacesTest (Liferay+Tomcat)

    Details

      Description

      The TCK TestPage017 (requestProcessingNonFacesTest) issues a non-Faces request for "/tests/chapter4_2_5Result.jsp" but the Liferay Portal does not properly handle this unless an explicit servlet-mapping exists for the Tomcat JspServlet. Specifically, the Liferay PortletRequestDispatcherImpl#dispatch(PortletRequest, PortletResponse, boolean, boolean) protected method will not properly initialize the pathInfo and servletPath variables that it uses to construct the PortletServletRequest.

      In order to ensure that PortletRequestDispatcherImpl is compatibile with Bridge.NONFACES_TARGET_PATH_PARAMETER (_jsfBridgeNonFacesView), the following entries must be added to the WEB-INF/web.xml descriptor:

      <servlet>
        <servlet-name>JspServlet</servlet-name>
        <servlet-class&gt;org.apache.jasper.servlet.JspServlet</servlet-class&gt;
      </servlet>
      <servlet-mapping>
        <servlet-name>JspServlet</servlet-name>
        <url-pattern>/tests/*</url-pattern>
      </servlet-mapping>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-3.0.0-legacy-ga1
                liferay-faces-3.0.0-ga1
                liferay-faces-3.1.0-ga1