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

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

    XMLWordPrintable

Details

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

    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.

       

       

       

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            bdw429s Brad Wood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: