Details
-
Bug
-
Resolution: Done
-
Major
-
12.0.0.Beta1
-
None
Description
When this expression
equals(%m, 'POST') -> { response-code(444) } else { response-code(555) }
is put into "undertow-handlers.conf", and the predicate is false, the returned response code is 200, like the false branch was ignored.
The handler for the false branch is set to RewriteCorrectingHandlerWrapper.
This behavior is different when the same expression is configured via expression filter in undertow subsystem.
Contents of files.war:
/empty /not-empty /WEB-INF/undertow-handlers.conf