Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

[RFR-409] Fix Websocket in Vert.X #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hb0
Copy link
Contributor

@hb0 hb0 commented May 2, 2023

PR blocked because of an open issue in the current Vert.X version, now fixed in 4.4.4 yet:

vert-x3/vertx-mongo-client#291

But the provider already uses this PR, release as 2.1.3-beta2

@hb0 hb0 self-assigned this May 2, 2023
Copy link
Contributor Author

@hb0 hb0 left a comment

Choose a reason for hiding this comment

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

pre-reviewed

final var options = new HttpServerOptions();
options.setCompressionSupported(true);
// Make server respond with one of the sub-protocols sent by our client, in our case: ['Bearer', 'eyToken***'].
// When the server does not respond with one of both options, the websocket client won't accept the connection.
// The protocol name "Bearer" is made up, but injecting the auth token via protocol is a common workaround
// for the issue that the Javascript Websocket class does not allow to add an `Authorization` header [RFR-165].
options.setWebSocketSubProtocols(Collections.singletonList("Bearer"));
options.setRegisterWebSocketWriteHandlers(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this fixes the bug in the provider

@@ -81,7 +81,7 @@ subprojects {
// If you increase this version, check if the `collector.GridFSStorageIT` breaks
// There is a bug up to version 4.4.1, scheduled to be fixed in 4.4.2
// https://github.com/vert-x3/vertx-mongo-client/issues/291
vertxVersion = '4.3.6'
vertxVersion = '4.4.1' // FIXME: Don't release yet as this version does not work with collector.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FIXME: We cannot merge release this PR yet, as the Collector cannot upgrade to this Vert.X version

@hb0 hb0 force-pushed the task/RFR-409_Support-vertx-4.4 branch from e37c754 to 8afeafe Compare May 19, 2023 13:44
@hb0 hb0 force-pushed the task/RFR-409_Support-vertx-4.4 branch from 8afeafe to 3fd4a01 Compare June 29, 2023 07:43
@hb0 hb0 force-pushed the task/RFR-409_Support-vertx-4.4 branch 2 times, most recently from f85f1ac to 432ee36 Compare June 30, 2023 09:23
@hb0 hb0 force-pushed the task/RFR-409_Support-vertx-4.4 branch from 432ee36 to 569366f Compare June 30, 2023 09:49
@hb0 hb0 force-pushed the task/RFR-409_Support-vertx-4.4 branch from fbc6849 to ddeb037 Compare July 26, 2023 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant