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

Disabled "Agent Configuration Change Notification" does not work properly, if new worker is created for C Agent

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0.0.0
    • Fix Version/s: None
    • Component/s: Web Agents
    • Environment:
      Centos 6 / Apache/2.4.28 (Unix) / OpenAM Web Agent for Apache Server 2.4.x 64bit, Version: 5.0.0-SNAPSHOT, Revision: da5204c, Build machine: delacroix, Build date: Oct 10 2017 07:03:51

      Description

      Disabled "Agent Configuration Change Notification" does not work properly, if new worker is created

      Steps to reproduce

      1.) Disable Agent Configuration Change Notification(com.sun.identity.agents.config.change.notification.enable)
      2.) Now set some property to see, if any changes will be not applied. Easy for testing is Not Enforced URL, e.g. to http://centos6-64.example.com:80/index.html
      3.) Hit index page a lot of times until new worker will be created(this step can take while)
      I used a curl for it

      curl -v -X GET http://centos6-64.example.com:80/index.html
      

      Observed Result

      Agent responds 302 (redirected to AM what is expected), but if new worker is created some of requests have 200 (see protected page, set in NEU list, but shoul not happen, because configuration notifications are disabled)

      Expected

      Agents always will return 302, until agent will be restarted

      Here is example of apache audit logs where is possible to see different results

      192.168.56.1 - - [10/Oct/2017:14:01:08 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:09 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:10 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:10 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:11 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:11 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:12 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:12 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:12 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:13 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:15 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:15 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:16 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:16 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:17 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:17 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:17 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:17 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:17 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:18 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:18 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:19 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:19 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:19 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:19 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:20 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:20 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:20 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:20 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:21 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:21 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:21 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:21 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:22 +0200] "GET /index.html HTTP/1.1" 200 2827
      192.168.56.1 - - [10/Oct/2017:14:01:22 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:22 +0200] "GET /index.html HTTP/1.1" 302 538
      192.168.56.1 - - [10/Oct/2017:14:01:22 +0200] "GET /index.html HTTP/1.1" 302 538
      

        Attachments

          Activity

            People

            • Assignee:
              nick.james Nicholas James
              Reporter:
              richard.hruza Richard Hruza
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: