ICEfaces
  1. ICEfaces
  2. ICE-7242

Updates fetched during push now contain redundant ViewState update

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1-Beta2, 3.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces + ICEpush
    • Assignee Priority:
      P2

      Description

      Using auction 2.0 in a test I observed the following:

      Previously, we would POST a blocking request to listen for updates

      POST http://localhost:8080/auction/javax.faces.resource/listen.icepush.jsf

      and get a response once a second:

      <notified-pushids>apushId</notified-pushids>


      Then fetch the update:
      POST http://localhost:8080/auction/auction.jsf

      and the update would be something like:

      <?xml version='1.0' encoding='UTF-8'?>
      <partial-response><changes><update id="rpt1:0:otime"><![CDATA[<span id="rpt1:0:otime">7d 1:54:53</span>]]></update><update id="rpt1:1:otime"><![CDATA[<span id="rpt1:1:otime">3d 4:54:44</span>]]></update><update id="rpt1:2:otime"><![CDATA[<span id="rpt1:2:otime">2d 7:55:34</span>]]></update><update id="rpt1:3:otime"><![CDATA[<span id="rpt1:3:otime">7:54:49</span>]]></update><update id="javax.faces.ViewState"><![CDATA[4506655347714165083:6047748643060694507]]></update></changes></partial-response>


      This would occur once a second. Now, however, we're getting two updates per second. The first is similar to the above as the clock polls, but the second update seems to contain a change only to the ViewState key.


      POST http://localhost:8080/auction/javax.faces.resource/listen.icepush.jsf


      ?xml version='1.0' encoding='UTF-8'?>
      <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[4506655347714165083:6047748643060694507]]></update></changes></partial-response>



      Comparing the javax.faces.ViewState field from both updates, they are seen to be equal, so the second update is entirely redundant.
      <![CDATA[4506655347714165083:6047748643060694507]]>

      <![CDATA[4506655347714165083:6047748643060694507]]>


      This means we're doing 2 pairs of requests every second.

        Issue Links

          Activity

          Greg Dick created issue -
          Deryk Sinotte made changes -
          Field Original Value New Value
          Assignee Mircea Toma [ mircea.toma ]
          Deryk Sinotte made changes -
          Salesforce Case []
          Fix Version/s 2.1 [ 10241 ]
          Assignee Priority P1
          Deryk Sinotte made changes -
          Salesforce Case []
          Deryk Sinotte made changes -
          Link This issue blocks ICE-7118 [ ICE-7118 ]
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Priority P1 P2
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 2.1-Beta2 [ 10294 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 2.1-Beta2 [ 10294 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 2.1-Beta2 [ 10294 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 2.1 [ 10241 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 2.1 [ 10241 ]
          Ken Fyten made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Greg Dick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: