Skip to content

PathPattern with double-star(**) not works as expected #22847

@ronnin

Description

@ronnin
public class SpringPathPatternTest {

    @Test
    public void testDoubleStar() {
        PathPattern pathPattern = new PathPatternParser().parse("/first/**/last");
        PathContainer path = PathContainer.parsePath("/first/a/b/c/last");

        assertTrue(pathPattern.matches(path)); // FAILED !!!
    }
}

tested on spring-web 5.1.5.RELEASE

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions