Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-4345

WsGetGroupsLiteResult with no found groups should return empty list

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 1.3.0
    • WS
    • None

    Description

      {
        "WsGetGroupsLiteResult": {
          "resultMetadata": {
            "success": "T",
            "resultCode": "SUCCESS",
            "resultMessage": "Success for: clientVersion: 2.6.5, subjectLookups: Array size: 1: [0]: WsSubjectLookup[subjectId=banderson]\n\nmemberFilter: All, includeGroupDetail: false, actAsSubject: null\n, params: null\n fieldName1: null\n, scope: null, wsStemLookup: WsStemLookup[]\n, stemScope: null, enabled: null, pageSize: null, pageNumber: null, sortString: null, ascending: null\n, pointInTimeFrom: null, pointInTimeTo: null"
          },
          "wsSubject": {
            "sourceId": "ldap",
            "success": "T",
            "name": "Bob Anderson",
            "resultCode": "SUCCESS",
            "id": "banderson"
          },
          "responseMetadata": {
            "serverVersion": "2.6.15",
            "millis": "473"
          }
        }
      }
      

      When no groups are found, it is missing the wsGroups node, which means callers may need to do an extra for null or get a null pointer exception.

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chad.redman.3@at.internet2.edu Chad Redman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: