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

Predicate Language access-control handler doesn't have failure-status parameter

    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
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      The ip-access-control handler allows for a custom status code to be set in the predicate language via the failure-status parameter:

      path-prefix(/admin) -> ip-access-control(default-allow=false, acl={'192.168.0.* allow'}, failure-status=404)
      

      However, the access-control handler doesn't allow a custom failure-status to be set (hard coded to use "403"):

      path-prefix(value="/admin/") -> access-control[default-allow=false, attribute='%{REMOTE_IP}', acl={'^127\.0\.0\.1$ allow'} ]
      

      The ability to pass a custom failure-status should be added to the access-control handler.

       

       

       

        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: