Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-15165

Recon failed with scripted rest with dj sample

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: _Samples
    • Labels:
    • Environment:
      IDM master runs on a CentOS 7 machine, Java 11, MySQL as repo

      Description

      The scripted rest stress test failed to run due to a recon failure(Test was ok on June 20, failed after that) :

      Recon Mapping = systemRestLdapUser_managedUser
      20200717 23:53:21.374 - INFO - Recon Url = http://pelardon.internal.forgerock.com:8081/openidm/recon?_action=recon&mapping=systemRestLdapUser_managedUser&waitForCompletion=true
      20200717 23:53:21.429 - INFO - <Response [409]>
      20200717 23:53:21.431 - FAIL - ERROR:
      -- http status --
      returned 409, expected 200
      -- content --
      {"code":409,"reason":"Conflict","message":"Synchronization failed"}

      IDM log(attached) showed a 401.

      ...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: SearchScript error
      ...
      Caused by: groovyx.net.http.HttpResponseException: status code: 401, reason phrase: Unauthorized
              at groovyx.net.http.RESTClient.defaultFailureHandler(RESTClient.java:263)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
      ....

      To reproduce, run stress test as :

      ./run-pybot.py  -c stress -s idm.crud_on_system_users.CrudSystemRest OpenIDM

        Attachments

          Activity

            People

            • Assignee:
              cgdrake Chris Drake
              Reporter:
              Tinghua.Xu Tinghua Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: