Skip to content

endpoint path with regex defined params problems after jooby upgrade 1.0.0.CR6 → 1.0.0.CR8 #526

Description

@dapalt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions