SearchResource JSON format has changed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 2.6
    • Affects Version/s: 2.6
    • Component/s: REST
    • None

      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.

              Assignee:
              joe
              Reporter:
              ArvindA
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: