DynamicMappingFilter, WildFly (JBoss AS 8) and method not supported

Description

DynamicMappingFilter detects a non-existing resource by catching FileNotFoundException and by controlling whether the HTTP return code for the resource is 404. Unfortunately, in WildFly, the default servlet returns 405 (method not allowed) for POST requests; therefore DynamicMappingFilter does not invoke any Stripes action for those requests, returning 405 to the client instead.

Since the DispatcherServlet understands both GET and POST, imho 405 should always be interpreted as resource not found as well, and the request handled with the DispatcherServlet.

Environment

WildFly 8.0.0.Final

Status

Assignee

R

Reporter

alessioc

Labels

None

Tester

None

Components

Fix versions

Affects versions

Release 1.5.7

Priority

Major
Configure