You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Eduardo Breijo (JIRA)" <de...@myfaces.apache.org> on 2017/07/14 13:28:00 UTC

[jira] [Updated] (MYFACES-4124) Wrong user properties map is used when using and onOpen method is invoked

     [ https://issues.apache.org/jira/browse/MYFACES-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eduardo Breijo updated MYFACES-4124:
------------------------------------
    Status: Patch Available  (was: Open)

> Wrong user properties map is used when using <f:websocket> and onOpen method is invoked
> ---------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4124
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4124
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>         Environment: WebSphere Application Server Liberty profile
>            Reporter: Eduardo Breijo
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)