Disable AntPathRequestMatcher trim tokens
Issue gh-3831
This commit is contained in:
@@ -162,6 +162,17 @@ public class AntPathRequestMatcherTests {
|
||||
.isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void spacesInPathSegmentsAreNotIgnored() {
|
||||
AntPathRequestMatcher matcher = new AntPathRequestMatcher("/path/*/bar");
|
||||
MockHttpServletRequest request = createRequest("/path /foo/bar");
|
||||
assertThat(matcher.matches(request)).isFalse();
|
||||
|
||||
matcher = new AntPathRequestMatcher("/path/foo");
|
||||
request = createRequest("/path /foo");
|
||||
assertThat(matcher.matches(request)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void equalsBehavesCorrectly() throws Exception {
|
||||
// Both universal wildcard options should be equal
|
||||
|
||||
Reference in New Issue
Block a user