Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2881

Server state saving with two forms, ajax and normal request is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.1, 2.0.2-SNAPSHOT
    • 2.1.0
    • General
    • None
    • myfaces 2.0.1 or trunk;

    Description

      Use simple xhtml with:

      <h:form id="form1">
      <h:commandButton value="Partial">
      <f:ajax execute="@this" render="@this" />
      </h:commandButton>
      </h:fom>

      </h:form>
      <h:form id="form2">
      <h:commandButton value="Full" />
      </h:form>

      then:
      1) click "Partial" button 20x or more
      2) click "Full" button
      -> ViewExpiredException appears. If you click "Partial" 19 times or less ViewExpiredException does not appear.

      20 is default for NUMBER_OF_VIEW_IN_SESSION - it you set this param to 1 you reproduce this problem with two clicks. Maybe there is more simple test case for reproducing this issue but I didn't find it yet.

      This bug is present in 2.0.1 already and is related to server state saving:
      myfaces 2.0.1:

      PSS + server: failed
      PSS + client: ok
      FSS + server: failed
      FSS + client: ok

      myfaces 2.0.2-SNAPSHOT:

      PSS + server: failed
      PSS + client: ok
      FSS + server: failed
      FSS + client: ok

      Very likely this causes MYFACES-2877 too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: