Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1738

Relax case sensitivity in Predicate Language for ease of use

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 2.1.3.Final
    • Core, Predicate Language
    • None

    Description

      The following parts of the predicate langauge are case sensitive:

      • Predicate names
      • Handler names
      • Parameter names
      • Keywords like and, or, else

      While this may seem familiar for Java developers, coming from a naturally case inconsistent JVM language (CFML), this is really just more annoying and makes the predicate language harder to use.  Since the predicate DSL is not Java, but something designed to be easy to read and write, let's make it not as pedantic.  

      There doesn't seem to be a compelling reason why a predicate/handler written like this can't work.  

      PATH(box.json) AND TRUE -> Response-Code( Value=404 )
      

      Since the possible keywords, parameters, and handler/predicate names are limited in our DSL, there really is no ambiguity here.  

      Attachments

        Activity

          People

            bdw429s Brad Wood
            bdw429s Brad Wood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: