Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-689

Regular expressions for NEU does not work in C agent 5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0.0.0
    • Fix Version/s: None
    • Component/s: Web Agents
    • Environment:
      Ubuntu 14.04 / Apache 2.4 / Version: 5.0.0-SNAPSHOT, Revision: 4d7c7fb,
       Build date: Jun 20 2017 09:08:05

      Description

      Regular expressions for NEU does not work in C agent 5.

      Steps to Reproduce

      1.) Custom property(Advanced Tab): com.forgerock.agents.notenforced.url.regex.enable=true
      2.) Set Application > Not Enforced URLs list

      .*\.(png|jpg)
      

      3.) Hit the page
       http://riso-ubuntu14.test.forgerock.com:80/index.jpg (or something with png or jpg extension)

      Expected Result

      See requested page without login

      Observed Result

      Redirected to Login page

      Agent Debug Log
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:249] setup_request_data():
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:271] setup_request_data(): client ip: 172.25.1.224
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:309] setup_request_data(): client hostname: (empty)
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:317] setup_request_data(): original request url: http://riso-ubuntu14.test.forgerock.com/index.jpg
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:397] setup_request_data(): 
      method: GET 
      original url: http://riso-ubuntu14.test.forgerock.com/index.jpg
      proto: http
      host: riso-ubuntu14.test.forgerock.com
      port: 80
      path: /index.jpg
      query: 
      complete: http://riso-ubuntu14.test.forgerock.com:80/index.jpg
      overridden: http://riso-ubuntu14.test.forgerock.com:80/index.jpg
      pathinfo: 
      normalized (pathinfo removed): (empty)
      overridden (pathinfo removed): (empty)
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:421] validate_url():
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:433] validate_url(): request url validation feature is not enabled
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:442] validate_fqdn_access():
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:445] validate_fqdn_access(): feature is not enabled
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:544] handle_not_enforced(): application logout url feature is not enabled
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:684] handle_not_enforced(): not enforced client ip validation feature is not enabled
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:687] handle_not_enforced(): validating http://riso-ubuntu14.test.forgerock.com:80/index.jpg
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:696] handle_not_enforced(): trying not enforced pattern .*\.(png|jpg)
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:717] handle_not_enforced(): validating http://riso-ubuntu14.test.forgerock.com:80/index.jpg ignoring query attributes
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:808] handle_not_enforced(): extended not enforced url validation feature is not enabled
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:811] handle_not_enforced(): http://riso-ubuntu14.test.forgerock.com:80/index.jpg is enforced
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:952] validate_policy(): for http://riso-ubuntu14.test.forgerock.com:80/index.jpg (ignoring pathinfo: no), entry status: not found
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:1987] handle_exit(): (entry status: invalid session)
      2017-06-26 14:53:19.533 +0100   DEBUG [0x7fd5067fc700:28649][source/request.c:1574] do_cookie_set_generic(): iPlanetDirectoryPro=;Max-Age=0;Expires=Thu, 01-Jan-1970 00:00:01 GMT;Path=/
      2017-06-26 14:53:19.535 +0100   DEBUG [0x7fd5067fc700:28649][source/utility.c:1551] get_valid_openam_url(): active OpenAM service url: http://perf-openam.internal.forgerock.com:8080/openam (0)
      2017-06-26 14:53:19.535 +0100   DEBUG [0x7fd5067fc700:28649][source/apache/agent.c:726] amagent_auth_handler(): exit status: redirect (1)
      

       

        Attachments

          Activity

            People

            Assignee:
            rich.riley Rich Riley [X] (Inactive)
            Reporter:
            richard.hruza Richard Hruza
            QA Assignee:
            Richard Hruza Richard Hruza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: