Skip to content

Regression: UriTemplate does not match when URI ends with slash [SPR-13705] #18280

@spring-projects-issues

Description

@spring-projects-issues

Lukas Krecan opened SPR-13705 and commented

This test passes in 4.2.2 but fails in 4.2.3. I guess it's due to the slash at the end of template.

@Test
public void testMatchSlashAtTheEnd() {
    UriTemplate uriTemplate = new UriTemplate("/test/");
    assertTrue(uriTemplate.matches("/test/"));
}

Affects: 4.2.3

Issue Links:

Referenced from: commits fed4391

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions