You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WICKET-7162] avoid a NPE when a JavaxUpgradeHttpRequest is created in a situation when there is no session (e.g. some stateless page) and extract context from requestedUI
Copy file name to clipboardExpand all lines: wicket-native-websocket/wicket-native-websocket-javax/src/main/java/org/apache/wicket/protocol/ws/javax/JavaxUpgradeHttpRequest.java
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,20 @@
49
49
importjakarta.websocket.Session;
50
50
51
51
importorg.apache.wicket.util.string.StringValue;
52
+
importorg.slf4j.Logger;
53
+
importorg.slf4j.LoggerFactory;
52
54
53
55
/**
54
56
* An artificial HttpServletRequest with data collected from the
55
57
* available WebSocket Session and from the HandshakeRequest
Copy file name to clipboardExpand all lines: wicket-native-websocket/wicket-native-websocket-javax/src/main/java/org/apache/wicket/protocol/ws/javax/WicketServerEndpointConfig.java
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
importjava.util.List;
22
22
importjava.util.Map;
23
23
24
+
importjakarta.servlet.http.HttpSession;
24
25
importjakarta.websocket.Decoder;
25
26
importjakarta.websocket.Encoder;
26
27
importjakarta.websocket.Extension;
@@ -127,18 +128,33 @@ public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request,
127
128
// do not store null keys/values because Tomcat 8 uses ConcurrentMap for UserProperties
0 commit comments