[TYRUS-222] HandshakeException when checking "Connection" header from Firefox client Created: 27/Jul/13  Updated: 29/Jul/13  Resolved: 29/Jul/13

Status: Resolved
Project: tyrus
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.1

Type: Bug Priority: Major
Reporter: jmarine Assignee: Pavel Bucek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FireFox 17.0.1



 Description   

It seems the org.glassfish.tyrus.websockets.HandShake class validates that the "Connection" header is equal to "Upgrade", but the actual header is "keep-alive, upgrade".



 Comments   
Comment by jmarine [ 27/Jul/13 ]

I have reopened issue 55 because in versions 1.1 and 1.2, the org.glassfish.tyrus.websockets.HandShake only checks for the first value of the "Connection" header ("keep-alive" value, instead of all the complete header value: "keep-alive, upgrade")

Line 97:
checkForHeader(request.getFirstHeaderValue(WebSocketEngine.CONNECTION), WebSocketEngine.CONNECTION, WebSocketEngine.UPGRADE);

Generated at Tue Jun 28 07:05:58 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.