How to use a ${} value in an undertow expression filter with CLI

Solution Verified - Updated -

Issue

  • Adding an undertow expression filter with a value ${} returns an error in CLI:

    {
        "outcome" => "failed",
        "failure-description" => "WFLYCTL0211: Cannot resolve expression 'XXXXX'",
        "rolled-back" => true
    }
    
  • Undertow predicates uses the ${} tag to access a value from the predicate context but the expression is not valid for CLI or inside the standalone.xml or domain.xml file.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 7
  • Undertow / EAP filters (using value expressions to access the context)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.