-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Sockets declared with Undertow @ServerEndpoint breaking when using quarkus.http.root-path #22053
Comments
This bug remains unfixed with Quarkus 2.7.5. |
@sandronm Glad I'm at least not the only one facing it |
Oh man, I just spent a few hours scratching my head wondering what I was doing wrong while implementing websockets.. I kept getting a 404 no matter what I tried. This is quite annoying because now I need to change my other endpoints to accommodate this... |
Could someone affected provide a small Maven reproducer for this issue? |
@gsmet wouldn't it be enough to just add a test with the changed root path to the test suite? Because it's really just that, nothing else |
Well, you can do that if you prefer. It can be a bit more work because of the size of the project. |
@gsmet I'll see if I can get a reproducer together. No hard promises yet though, things are a bit hectic atm... |
@gsmet will the reproducer be embedded into tests or is it just to show that this issue really happens? https://quarkus.io/guides/websockets
Hard to imagine why there must be an extra project created just to show it |
Well, you're not juggling with many reports of people saying it's simple to reproduce and trying to reproduce it yourself. Having a self contained project with a test really makes our life easier and personally I prioritize issues that have one. @stuartwdouglas I digged a bit this one and AFAICS we are not propagating the root path at all (or I missed it). This is pretty involved and I'm not sure where I should push the info in Quarkus HTTP. If you can point me to where we should handle things there, I can make sure this thing is propagated correctly to this place. |
I will try and have a look sometime next week |
quarkusio/quarkus-http#103 should fix it, once it is merged a test is at #25156 |
Describe the bug
When using
quarkus.http.root-path=/api/
, the socket can't be connected to anymore, neither under the root path nor under the/api
sub-route.Using Quarkus 2.5.1
Expected behavior
To be working correctly under
/api/
as well.Actual behavior
This is the response when trying to connect with Postman
The text was updated successfully, but these errors were encountered: