Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-13762

Improve caching of ServiceConfigImpl instances

    XMLWordPrintable

    Details

    • Yes
    • No
    • Yes and I used the same an in the description

      Description

      Bug description

      On persistent cookie test with default or static secret setup , during run its been seen that randomly ( and more often) AM fails to issue session_jwt. Thus the tests are failing on snapshot.

      Jobs affected :

       
      HTTP request:
      POST http://openam.example.com:8080/openam/json/authenticate?realm=myrealm
      headers=
      Content-Type: application/json
      Accept: application/json
      Accept-API-Version: protocol=1.0,resource=2.0
      Cookie: session-jwt=eyJ0eXAiOiJKV1QiLCJraWQiOiJobWFjc2lnbmluZ3Rlc3QiLCJjdHkiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ZXlKMGVYQWlPaUpLVjFRaUxDSnJhV1FpT2lKRWEwdE5VRVUzYUVaV1JXNDNOMWRYYUZaMWVtRnZSbkEwVHpnOUlpd2laVzVqSWpvaVFURXlPRU5DUXkxSVV6STFOaUlzSW1Gc1p5STZJbEpUUVRGZk5TSjkuRl9oWEZHWEFzcmgxN3VqbGoyNlRoSFplMUNhVU5lc1JOZkNFNGJIWndYZVN2cjY2aG1CTlNMNUowV0QyWHFBdXc3Y1d1ZVo3b05ybXdZRFVuZFQyd0FyUGJxSGZWWTQzcTZ0eUlSWXJTdnRRWUp3aHJhdWlIWUxpWHZvN2VBUWN1azFKd3FmaFlubjdHZDJMTEh2cmx6WWs2WG9ieWctYk5GbUhEOWJjaXZ6MjJmdzBLanZ4bGdnOVdxRmgtSmdJMjdNWnVPejdmVDNTQ09seF8yR1E1b2JiOFVndjlQN1lqSFBOaTdNWHhKUkQxRlFYNU83VzN0c0hXUFZTZWpySy1zektPUnBGV1F6aGdHdjBlc0QwdFZVcGRCTG1yMDdVcm9SWnhqdlNENFpkUzN1bUxjTkV1eGF4MGRseXBkSDg3aElNdmVvRVZIWklNRlBZbU5GYUR3LjlhVXpHemhvTUhKVXFKeF9sYjFGT2cuSjBCUFYtTnNRMDh2VnphTDVmb2NWY1dFamNyLWhCWmFydlFpcXhlc1lHMVNxbFppOVZWU3pvZjdFRFlBV21Kc0RDbkVYcUtHUUhVWDY4UVhwMTEyeUxsLXpkZmx4b1lOOVgxVXZXeWZ1Um5NWEh1ZnZYNmJvenJyTllNZkc0cXU5WjlzcGU5d0U2QUdJNE1KMW9ya2lnMmRxaFZnQ0Y1R0JqMnF2LUZIZFJZczV3cWlLb1Y0WEVjNzlTbmExRWhIWnZOUmdxSTNNTmVZc21PWE9Eay12RllEVlBGSUNHVHFTaTdmMlVEaFpvUHY3YlhEVjVmVnhLVXhZUkhmaE1GcVd4WGpLUVhoTjBwQ0FSU0VibFJxN2hsUk5JNmpYMlprbURMWmhBckhEYk1SX1I2VjRrZ0VEcHk2MnZldzBRYW8zV3pJa244UGJqbmFlRWgxa2RYWDNMdDJRNzVfWnJqUlZTUFEtbHdGMHFLX0IzSmlSTlpYSldDMzRfV05ud25yUW10SnVFSnRNN1NEbk1yYkVqdHZIU1BGamYtckhvdnEtMnBrSThuOExuTmgxcE5kVG44cDBzS1lCLUFocVBtNGsxbFNLSTRsSXJpNFZtOXFqMkFsWnpSNFZ3cEpnSWV6YklqZWkzSVJDZkpfN3pyMDNOZmgwWHBTdkZrT252RDV1WEdQbVJYSFhBR0s2WEFjYmQ5OWdYNEU3LTRVNFRFbS1YY1RqeTQydzhzWTVveGJJaHJXRHN0Q0VzQTVJN1FvaTNORWxSRDEyU2JQN0RzTjhnLXNZd05mZVIwaDJaZUtCSml3YWpMR3c5LWhXOVJEMGN4SHJGOVhra0hzT0tOQi5WVVA1UzhSZDRWZFFFc3dsTi1HN3pR.jIoK3DM29He8BKBfdw9uougTaQSt9pbvBzb8Jh7U0t8; Domain=openam.example.com; Expires=Fri, 12-Oct-2018 16:03:58 GMT
      Host: openam.example.com:8080
      =========================
      HTTP response:
      status=
      200 OK
      headers= 
      Server: Apache-Coyote/1.1
      X-Frame-Options: SAMEORIGIN
      Set-Cookie: amlbcookie=01; Domain=openam.example.com; Path=/
      Cache-Control: no-cache, no-store, must-revalidate
      Content-API-Version: resource=2.1
      Expires: 0
      Pragma: no-cache
      Content-Type: application/json
      Content-Length: 646
      Date: Fri, 12 Oct 2018 11:03:57 GMT
      
      body=
      {"authId":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvdGsiOiJzMnVlNGZqMGs0aG5oaWwzcWM2djc4NGt1ZCIsInJlYWxtIjoiL215cmVhbG0iLCJzZXNzaW9uSWQiOiJ2WERPYUhtQ29DX2RSdEZ3SFYzN1pIXzRiUWcuKkFBSlRTUUFDTURFQUFsTkxBQncwWm5Wd09UTmFTSEJQYkRZNGNXZHhjR2N6Y1ZGV2FGQmhRVzg5QUFSMGVYQmxBQWxKVGw5TlJVMVBVbGtBQWxNeEFBQS4qIn0.kHbJxZ-zj_paWA_DIV8oP5mULzfbkqRuZZ7-a3RKTHw","template":"","stage":"DataStore1","header":"Sign in","callbacks":[{"type":"NameCallback","output":[{"name":"prompt","value":"User Name:"}],"input":[{"name":"IDToken1","value":""}]},{"type":"PasswordCallback","output":[{"name":"prompt","value":"Password:"}],"input":[{"name":"IDToken2","value":""}]}]}
      

      How to reproduce the issue

      you can recreate this issue by running the below test via pyforge with above config changes:

      ./run-pybot.py -v -c perf -s AuthN.EmbeddedDJ -t RestLogin_PersistentCookie OpenAM

       

        Attachments

          Activity

            People

            peter.major Peter Major [X] (Inactive)
            narita.saxena Narita Saxena
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: