NPE in NettyRoutingFilter upon PROPFIND request
Bug report
Gateway version:2.0.2.RELEASE
PROPFIND, which is a WebDAV method instead of a HTTP method causes NPE in NettyRoutingFilter.
final HttpMethod method = HttpMethod.valueOf(request.getMethod().toString());
Since the org.springframework.http.HttpMethod doesn't recognize the PROPFIND, toString() results in NPE.
Bug also persists in latest version. 2.1.0.RC3
Can you try Greenwhich snapshots? I think that was resolved via https://github.com/spring-cloud/spring-cloud-gateway/pull/741/files. We might need to cherry pick it to the 2.0.x branch though.
That PR addressed and fixed this issue, thanks!
A cherry pick'd be great though.
NVM its already there ;) https://github.com/spring-cloud/spring-cloud-gateway/blob/2.0.x/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java#L92