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

Relax case sensitivity in Predicate Language for ease of use

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.3.Final
    • Fix Version/s: None
    • Component/s: Core, Predicate Language
    • Labels:
      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.  

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                flavia.rainone Flavia Rainone
                Reporter:
                bdw429s Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: