Anonymous | Login | Signup for a new account | 12-17-2024 08:48 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005459 | [Resin] | minor | always | 06-14-13 11:15 | 07-23-13 10:51 | ||||
Reporter | rickHigh | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0005459: Resin 7 websocket API issue | ||||||||
Description |
JampServlet is looking for Upgrade="WebSocket". It should be looking for the header Upgrade="websockt" This causes HTML 5 clients (JavaScript, Dart) to get a 404 in the Resin log when trying to call into JAMP. It is a minor change. @WebServlet(asyncSupported=true) public class JampServlet extends WebSocketServletImpl { req.getHeader("Upgrade") is returning "websocket". This is what the spec says it should return. We are incorrectly expecting "WebSocket". @Override public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { HttpServletRequestImpl req = (HttpServletRequestImpl) request; HttpServletResponseImpl res = (HttpServletResponseImpl) response; if ("WebSocket".equals(req.getHeader("Upgrade"))) { super.service(request, response); return; } should be changed to if ("websocket".equals(req.getHeader("Upgrade"))) { super.service(request, response); return; } |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed. 25 unique queries executed. |