-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Regression: HttpEntityMethodProcessor does not allow other Http methods than defined in the HttpMethod Enum [SPR-13776] #18350
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
Comments
Robert Winkler commented Do you need more information or is it sufficient? |
Juergen Hoeller commented Thanks for raising this; it's clear now that we have to consistently accept (or at least ignore) unknown HTTP methods. I'll do a comprehensive pass through all applicable spots, possibly in combination with relaxing Juergen |
Robert Winkler commented Thx. A Snapshot would be great. :) if (method.equalsIgnoreCase(RequestMethod.PATCH.name())) { |
Juergen Hoeller commented I've relaxed As for relaxing HTTP method handling in Juergen |
Robert Winkler commented Thank you very much. That was fast feedback. Yes, we currently use the workaround explained in #9476. But we are not happy with it. |
Juergen Hoeller commented The latest Juergen |
Robert Winkler commented Works. Everything fine again :) Thanks. |
Juergen Hoeller commented Alright, thanks for the feedback! |
Robert Winkler commented Is it possible that this change has not been merged into 4.2.4.RELEASE? |
Juergen Hoeller commented It should be in there just like in the snapshots: 4261f34 Juergen |
Robert Winkler commented Ups sry. I've updated the Spring IO Platform in our project, but forgot to update the spring-boot-gradle-plugin to 1.3.1.RELEASE. |
Robert Winkler opened SPR-13776 and commented
The following commit "11b4e3b" did change the way how the
HttpEntityMethodProcessor.handleReturnValue()
method checks if the currentServletRequest().getMethod()
equalsHttpMethod.GET
.The current implementation invokes
HttpMethod.valueOf(getRequest().getMethod())
now and does not allow HTTP methods like WebDav's "PROPFIND" anymore.Currently we can't use the Spring Framework anymore to provide a CalDav, CardDav application using the Miltion.io framework.
A PROPFIND requests fails with
java.lang.IllegalArgumentException, Message: No enum constant org.springframework.http.HttpMethod.PROPFIND
now.Affects: 4.2.3
Reference URL:
spring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessor.java
Line 175 in 11b4e3b
Issue Links:
The text was updated successfully, but these errors were encountered: