Undertow subsystem filter-ref does not resolve property expression for the predicate attribute in JBoss EAP 7
Issue
Undertow subsystem should support the property expression for the predicate
attribute of <filter-ref>
. However, it does not resolve and expand the specified property expression.
For example, I have the following configuration:
<subsystem xmlns="urn:jboss:domain:undertow:10.0" ...>
...
<server name="default-server">
...
<host name="default-host" alias="localhost">
...
<filter-ref name="request-limit-filter" predicate="not path-prefix('/${env.FOOBAR}/healthcheck')"/>
<filter-ref name="dump-request-filter" predicate="path-prefix('/${my.predicate.path.test}')"/>
</host>
</server>
...
<filters>
<request-limit name="request-limit-filter" max-concurrent-requests="10" queue-size="1"/>
<expression-filter name="dump-request-filter" expression="dump-request"/>
</filters>
</subsystem>
Then, JBoss EAP 7 starts with the following environment variable and system property:
FOOBAR=example ./bin/standalone.sh -Dmy.predicate.path.test=test
However, the dump-request filter does not trigger even if I send a request to http://localhost:8080/test/
and the request-limit filter also affects http://localhost:8080/example/healthcheck
.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.