Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-37

VIEWSTATE_PARAM parsing in StateManager doesn't always work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-beta, 2.0.0-alpha
    • 1.0.0-beta, 2.0.0-alpha
    • Impl
    • None

    Description

      Currently the code that parses for the VIEWSTATE_PARAM in the Bridge's StateManager is rudimentary (primarily for performance reasons). If checks to see if there is a closing /> to ensure it doesn't read beyond the end of the tag. However some environment (Trinidad) close the element just with a '>'. When this check fails we return null meaning the parameter isn't located/preserved. State is lost by the bridge. The bridge should be more tolerant. At a minimum it should recognize either end of tag. But failing this and other checks it should do more extensive parsing to ensure proper execution – i.e. it should work regardless of whether the name field is before the value field and/or '>' is a character in the view state param's value.

      Attachments

        Activity

          People

            mike_freedman Michael Freedman
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: