Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #4747 - fix some test failures for jetty-10 with websocket tck #4750

Merged
merged 10 commits into from
Apr 23, 2020

Conversation

lachlan-roberts
Copy link
Contributor

@lachlan-roberts lachlan-roberts commented Apr 7, 2020

Issue #4747

  • Default close status code should be normal status.

  • SessionID should return same String instance. Also using the object hash code is probably not suited to be used as a unique ID and not get collisions. Now using UUID.randomUUID() instead which is sufficiently random and large enough to generate unique IDs.

  • Throwing in onClose now calls onError. Also fixes a bug where onClosed may never be called if onFrame throws.

  • Fix to make WS path parameters work when deployed with a context path.

  • Correctly copy headers in JsrUpgradeListener. Multiple headers with the same name did not copy properly and were lost.

  • Filter out synthetic methods when looking for annotated methods on a class so bridge methods are not found.

  • The servers websocket handshake response is allowed to not select a subprotocol from the offered subprotocols by the client as long as it does not include the subprotocol header in the response.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Using the object hash code is not random enough to use as a unique ID.
Now using UUID.randomUUID() instead which sufficiently random.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
- This applies to the javax onClose method not the core onClosed method.
- Also fixes a bug where onClosed may never be called if onFrame throws.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Headers with the same name may not have been copied properly for
header values inspected and modified with a Configurator.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts force-pushed the jetty-10.0.x-4747-WebSocketTCK branch from c053b48 to 4e69b48 Compare April 8, 2020 05:31
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts requested a review from gregw April 22, 2020 11:29
Copy link
Contributor

@joakime joakime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lachlan-roberts lachlan-roberts merged commit 53246f9 into jetty-10.0.x Apr 23, 2020
@joakime joakime deleted the jetty-10.0.x-4747-WebSocketTCK branch May 21, 2020 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants