Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AntPathMatcher regression in 4.3 RC1 [SPR-14141] #18713

Closed
spring-projects-issues opened this issue Apr 9, 2016 · 0 comments
Closed

AntPathMatcher regression in 4.3 RC1 [SPR-14141] #18713

spring-projects-issues opened this issue Apr 9, 2016 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 9, 2016

Stephan Schroevers opened SPR-14141 and commented

The following test passes with version 4.2.5.RELEASE but fails with 4.3.0.RC1:

@Test
public void testPathMatcher() {
	PathMatcher matcher = new AntPathMatcher();
	assertTrue(matcher.match("https://example.com", "https://example.com"));
}

Cursory debugging indicates that the double slashes are problematic. The following test passes with both versions:

@Test
public void testPathMatcher() {
	PathMatcher matcher = new AntPathMatcher();
	assertTrue(matcher.match("https:/**/example.com", "https://example.com"));
}

This regression seems relevant because double slashes are common in patterns provided to the following methods:

  • MockMvcResultMatchers#forwardedUrlPattern
  • MockMvcResultMatchers#redirectedUrlPattern

I suspect this is related to #18487.


Affects: 4.3 RC1

Issue Links:

Referenced from: commits 368f29d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants