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

[Spring 5.3.0] The pattern after the wildcard "**" in the URL pattern is not allowed #870

Closed
yoshikawaa opened this issue Aug 24, 2020 · 0 comments

Comments

@yoshikawaa
Copy link
Contributor

yoshikawaa commented Aug 24, 2020

Description

Part of terasolunaorg/terasoluna-gfw#989

Spring MVC initialization error occurs.

date:2020-08-17 16:00:40 thread:main X-Track: level:ERROR logger:o.springframework.web.servlet.DispatcherServlet message:Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException : Error creating bean with name'org.springframework.web.servlet.handler.MappedInterceptor#2': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate (org.springframework.web.servlet .handler.MappedInterceptor]: Constructor threw exception; nested exception is org.springframework.web.util.pattern.PatternParseException: No more pattern data allowed after {*...} or ** pattern element

In Spring MVC, the path was previously analyzed by AntPathMatcher, but it was changed to use PathPatternParser introduced in WebFlux from Spring 5.3.0.

Possible Solution

Change the path /**/*.html to /*/*.html

However, since the above path is not needed in terasolunaorg/terasoluna-gfw-web-multi-blank#348 and is deleted from the blank, we should finally delete this path. -> #876

Affect versions

  • 5.7.0.RELEASE

Issue links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants