Hi,
after upgrading jooby (1.0.0.CR6 → 1.0.0.CR8) some of my endpoint paths are not recognized anymore.
For example when I wanted to pass param with defined first letter and number length I used to construct endpoint like:
get("/V{var:\\d{4,7}}/", req -> ImmutableMap.of("var", req.param("var").value()));
Changing it to:
get("/V{var:\\d+}/", req -> ImmutableMap.of("var", req.param("var").value()));
works but I need to validate my parameter manually and throw 404/invoke next route.
Another problem associated with upgrade and route params is passing url-encoded parameters with special chars to get method:
get("/:var", req -> ImmutableMap.of("var", req.param("var").value())) // 404 for /x%252Fy%252Fz
Are these changes intentional?
Thank you in advance
Hi,
after upgrading jooby (1.0.0.CR6 → 1.0.0.CR8) some of my endpoint paths are not recognized anymore.
For example when I wanted to pass param with defined first letter and number length I used to construct endpoint like:
get("/V{var:\\d{4,7}}/", req -> ImmutableMap.of("var", req.param("var").value()));Changing it to:
get("/V{var:\\d+}/", req -> ImmutableMap.of("var", req.param("var").value()));works but I need to validate my parameter manually and throw 404/invoke next route.
Another problem associated with upgrade and route params is passing url-encoded parameters with special chars to get method:
get("/:var", req -> ImmutableMap.of("var", req.param("var").value())) // 404 for /x%252Fy%252FzAre these changes intentional?
Thank you in advance