Details

      Description

      Steps to Reproduce:

      1. Deploy the JSF Issues war and the Test Setup Hook to Liferay Portal.
      2. Add FACES-3300.xhtml to JSF Issues:
        <?xml version="1.0" encoding="UTF-8"?>
        <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"
        	xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:portlet="http://java.sun.com/portlet_2_0">
        	<h:head />
        	<h:body>
        		<h1>FACES-3300.xhtml</h1>
        	</h:body>
        </f:view>
        
      3. Test the following URLs to /WEB-INF/views/FACES-3300.xhtml:
      4. Test the following URLs to the non-existent view /asdf.xhtml:

      The _jsfBridgeViewId and _facesViewIdRender parameters with value /asdf.xhtml (with a leading slash) show an empty portlet <div> with the following error message in the logs: "Status code 404: /asdf.xhtml Not Found in ExternalContext as a Resource". The _jsfBridgeViewId and _facesViewIdRender parameters with value asdf.xhtml (without a leading slash) throw java.io.FileNotFoundException: /asdf.xhtml causing the the "FACES-224 is temporarily unavailable." message to appear. The _jsfBridgeViewPath throws javax.portlet.faces.BridgeInvalidViewPathException causing the "FACES-224 is temporarily unavailable." message to appear in both cases.

      The behavior when the view exists seems to be consistent between all parameters (view is rendered if the path is correct, exception is thrown if the beginning slash is missing), but the behavior of _jsfBridgeViewId and _facesViewIdRender is inconsistent when the non-existent view id contains a leading slash (for example asdf.xhtml): no exception is thrown and an empty portlet <div> is shown. An exception should be thrown there and the "$PORTLET_NAME is temporarily unavailable." message should appear.

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann
              Reporter:
              kyle.stiemann Kyle Stiemann
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: