Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7738

Proxy with rest2ldap gateway in upgrade mode generates an internal server error

    XMLWordPrintable

    Details

      Description

      Regression triggered by commit https://stash.forgerock.org/projects/OPENDJ/repos/opendj/commits/8f63b12ef6218b5beaf4f2d97eb998bd2e2b4150

      We have a test that installs one server and one proxy and a Rest2ldap gateway for the proxy.
      This test works correctly in normal mode but when we use the upgrade mode (which consists in installing previous versions of the dj server/proxy server and upgrade them to 7.1.0 before configuring them), it now fails:

      *** Read a exiting resource user.0 with REST2LDAP ***
      18:48:11.002	INFO	====================
      Sending HTTP Request
      ====================	
      18:48:11.002	INFO	Url: http://openam.example.com:8084/rest2ldap/api/users/user.0
      None
      method: get
      params: {'_prettyPrint': 'true'}
      headers: {'Content-Type': 'application/json'}
      certificate: None
      auth: ('rest2ldap', '5ecret12!')
      data: 	
      18:48:11.510	INFO	=======================
      Receiving HTTP Response
      =======================	
      18:48:11.510	INFO	None
      status code: 500
      content: 
      {
        "code" : 500,
        "reason" : "Internal Server Error",
        "message" : "The DN \"ou=people,dc=com\" could not be parsed due to the following reason: No attribute type with name or OID \"ou\" exists in the schema"
      }
      

      I could not find any relevant information in any of the log file but this is easily to reproduce.
      it works fine with the commit e7a71ceec41.

      To reproduce:

      in your config file:

      [OpenDJ]
      host_name = ${Default:host_name}
      java_home = ${Default:java_home}
      java_args = ${Default:java_args}
      version = ["4.0.0", "7.1.0-SNAPSHOT"]
      ...

      [Rest2LdapGateway]
      version = 7.1.0-SNAPSHOT

      then run:

      ./run-pybot.py -nvs proxy_group.Behind* -t Existing_Resource opendj
      

        Attachments

          Issue Links

            Activity

              People

              cforel carole forel
              cforel carole forel
              Yannick Lecaillez Yannick Lecaillez
              carole forel carole forel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: