Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9815

RequestMethodsRequestCondition fails on unsupported method types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2 M2
    • Fix Version/s: 3.2 RC1
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      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)

        Issue Links

          Activity

          Show
          pwebb Phil Webb added a comment - https://github.com/SpringSource/spring-framework/pull/150

            People

            • Assignee:
              pwebb Phil Webb
              Reporter:
              pwebb Phil Webb
              Last updater:
              Chris Beams
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 10 weeks, 1 day ago