Closed
Description
Phil Webb opened SPR-9815 and commented
If the DispatcherServlet sends additional method the Enum.valueOf fails.
java.lang.IllegalArgumentException: No enum const class org.springframework.web.bind.annotation.RequestMethod.PROPFIND
at java.lang.Enum.valueOf(Enum.java:196)
at org.springframework.web.bind.annotation.RequestMethod.valueOf(RequestMethod.java:37)
at org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition.getMatchingCondition(RequestMethodsRequestCondition.java:101)
at org.springframework.web.servlet.mvc.method.RequestMappingInfo.getMatchingCondition(RequestMappingInfo.java:171)
at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.getMatchingMapping(RequestMappingInfoHandlerMapping.java:68)
at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.getMatchingMapping(RequestMappingInfoHandlerMapping.java:50)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.addMatchingMappings(AbstractHandlerMethodMapping.java:278)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:245)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:212)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:55)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:297)
at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1091)
at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1076)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:896)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
at org.cloudfoundry.practical.demo.ExtendedDispatcherServlet.service(ExtendedDispatcherServlet.java:46)
Affects: 3.2 M2
Sub-tasks:
- Backport "RequestMethodsRequestCondition fails on unsupported method types" [SPR-9816] #14449 Backport "RequestMethodsRequestCondition fails on unsupported method types"
Issue Links:
- Allow DispatcherServlet/ServletWrappingController to work with the extended WebDAV methods [SPR-4799] #9476 Allow DispatcherServlet/ServletWrappingController to work with the extended WebDAV methods