-
Notifications
You must be signed in to change notification settings - Fork 411
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
[BUG] ZioHttpInterpreter: Route with literal path segment makes route with variable path segment unavailable #3992
Comments
We've also observed this issue and it prevents us from upgrading beyond |
I ran your example with |
That's good news. Seems to be fixed specifically in 1.11.3, because 1.11.2 still fails. Possibly the 3.0.0 zio-http support? I will check in a real project hopefully later today, and if that fixes it I'll close the ticket. |
I added a test, passes (at least locally). Let me know if there would be any more problems |
Works well now, thanks @adamw @felix-hedenstrom and the contributors to the 1.11.3! |
Tapir version: Works in tapir 1.10.10 and before, broken since tapir 1.10.11 and later
Describe the bug
Consider the following code:
If I call the endpoints, both work as expected:
If I do the same with a newer version (same code, just versions changed):
If I call the endpoints, only the first one works:
Additional information
I also did some research into whether this might be a zio-http issue. I see however that when using tapir, the routing is done by ZioHttpInterpreter, instead of the routing code from zio-http itself.
The interesting/funny thing there is that zio-http has the same bug, but as far as I can tell it has never worked there. (zio/zio-http#3036)
My best guess is that the issue was introduced in this PR: #3856
The text was updated successfully, but these errors were encountered: