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

State not restored in JSF 2.3 due to ViewState and ClientWindowState encoded with extra colon



      The JSF 2.3 ViewState and ClientWindowState are encoded with an extra colon. However, Liferay Faces still encodes the state without the extra colon. Because of this, the state cannot be restored in some cases.

      Steps to reproduce:

      1. Deploy the jsf-applicant-portlet.
      2. Run the jsf-applicant-portlet tests:

      (cd liferay-faces-bridge-impl/test/integration/ && mvn test -P integration,pluto,chrome -Dintegration.port=8180 -Dtest=*JSFApp*)

      If the bug still exists, the test will fail with the following failures:

      Tests run: 10, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 50.801 sec <<< FAILURE!
      Results :
      Tests in error:
        runApplicantPortletTest_F_AutoPopulateCityState(com.liferay.faces.bridge.test.integration.demo.applicant.JSFApplicantPortletTester): Timed out after 10 seconds waiting for element ([[ChromeDriver: chrome on MAC (0081c7bed1e091dc30a39215f132d649)] -> xpath: //input[contains(@id,':postalCode')]])to become stale(..)
        runApplicantPortletTest_G_Comments(com.liferay.faces.bridge.test.integration.demo.applicant.JSFApplicantPortletTester): Timed out after 10 secondswaiting for element ([[ChromeDriver: chrome on MAC (0081c7bed1e091dc30a39215f132d649)] -> xpath: //a[contains(text(), 'Show Comments') or contains(text(), 'Hide Comments')]]) to become stale(..)
        runApplicantPortletTest_H_DateValidation(com.liferay.faces.bridge.test.integration.demo.applicant.JSFApplicantPortletTester): Timed out after 10 seconds waiting for element ([[ChromeDriver: chrome on MAC (0081c7bed1e091dc30a39215f132d649)] -> xpath: //input[contains(@id,':dateOfBirth')]]) to become stale(..)
        runApplicantPortletTest_I_FileUpload(com.liferay.faces.bridge.test.integration.demo.applicant.JSFApplicantPortletTester): Timed out after 10 seconds waiting for visibility of element located by By.xpath: //tr[@class='portlet-section-body results-row']/td[2](..)
        runApplicantPortletTest_J_Submit(com.liferay.faces.bridge.test.integration.demo.applicant.JSFApplicantPortletTester): no such element: Unable to locate element: {"method":"xpath","selector":"//textarea[contains(@id,':comments')]"}(..)
      Tests run: 10, Failures: 0, Errors: 5, Skipped: 0

      If the bug is fixed, the test will only fail the file upload test (or the test will have no failures).




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


              • Created: