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

Wrong user properties map is used when using <f:websocket> and onOpen method is invoked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0-beta
    • 2.3.0
    • None
    • None
    • WebSphere Application Server Liberty profile

    Description

      The <f:websocket> tag does not work due to a wrong object being used to get user properties map when the onOpen method from EndpointImpl is called.

      Currently, the WEBSOCKET_VALID key is stored in the user properties map of ServerEndpointConfig. When the onOpen method is called, it tries to retrieve the value stored for this key, but it is trying to get it from the wrong user properties map, that is, from the Session map, instead of getting it from the EndpointConfig user properties map.

      A patch has been provided to fix this issue.

      Attachments

        1. MYFACES-4124.patch
          0.8 kB
          Eduardo Breijo

        Activity

          People

            tandraschko Thomas Andraschko
            eduardobreijo Eduardo Breijo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: