Undertow file and exists predicates do not work in EAP 7.0.0

Solution Unverified - Updated -

Issue

  • We try to use a undertow handler with the file or exists predicates to do a redirect but they don't work. We've tried redirects like the following in our app's WEB-INF/undertow-handlers.conf, but file always resolves to false and exists always resolves to true:
not file(%U) -> redirect('/index.html')
not exists(%U) -> redirect('/index.html')

Environment

  • JBoss Enterprise Application Platform (EAP) 7.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content