-
Notifications
You must be signed in to change notification settings - Fork 654
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
Path parameter parsing should allow dots in segments and ignore query parameters #30
Labels
type/bug
A general bug
Milestone
Comments
Maybe the issue is not caused by the HttpServer.create(port).newRouter(routes ->
routes.get("/echo/{message}", (req, res) ->
res.sendString(Mono.just(req.param("message"))));
// GET /echo/hello => 200 OK "hello"
// GET /echo/hello?a=b => 200 OK "hello?a=b"
// GET /echo/hello.world => 404 Not Found This makes it impossible to use this API for defining routes for endpoints that accept query params or parameterized path segments may contain dots. |
mtritschler
pushed a commit
to mtritschler/reactor-netty
that referenced
this issue
Jan 31, 2017
Fixes part of reactor#30
smaldini
pushed a commit
that referenced
this issue
Sep 16, 2018
smaldini
added a commit
that referenced
this issue
Oct 16, 2018
smaldini
added a commit
that referenced
this issue
Oct 22, 2018
smaldini
added a commit
that referenced
this issue
Oct 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There seems to be a problem with pattern matching for paths in HTTP requests in reactor-netty
0.6.0.RELEASE
. Please consider the four examples below. They outline two different problems that are all related to (at least for me) unexpected behaviour of the pattern matcher. In summary they are/{x}
won't match/a.b
)/search
won't match/search?q=reactor
)The last example with
/test/{order}
illustrates nicely the brokenness of the implementation here as soon as query parameters come into play (given a path/test/foo?q=bar
, the value fororder
will befoo?q=bar
).The text was updated successfully, but these errors were encountered: