Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3058

SearchResource JSON format has changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 2.6
    • 2.6
    • REST
    • None

    Description

      The SearchResource (JSON mode) which provides the list of users/groups has changed in 2.6.0 version. Previously, When a client requested a resource, the response used to be of the format:

      response.json
      {
        expand: "user",
        users: [
          {
            link: {
              href: "http://localhost:4990/crowd/rest/usermanagement/1/user?username=admin",
              rel: "self"
            },
            name: "admin"
          }
        ]
      }
      

      With 2.6.0, the response has an extra level of indirection, the response looks like(Note the UserEntity object being introduced):

      response.json
      {
        expand: "user",
        users: [
          {
            UserEntity: {
              link: {
                href: "http://localhost:8095/crowd/rest/usermanagement/1/user?username=admin",
                rel: "self"
              },
              name: "admin"
            }
          }
        ]
      }
      

      This will break existing REST clients which use the JSON format endpoint.

      Attachments

        Issue Links

          Activity

            People

              jwalton joe
              akunday ArvindA
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: