myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Andraschko (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-4124) Wrong user properties map is used when using <f:websocket> and onOpen method is invoked
Date Mon, 17 Jul 2017 08:41:00 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089501#comment-16089501
] 

Thomas Andraschko commented on MYFACES-4124:
--------------------------------------------

Looks fine for me, thanks for the patch!

> 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
>         Attachments: MYFACES-4124.patch
>
>
> 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)

Mime
View raw message