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

getAttributeAssignment on multiple owners fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.1.3
    • 2.1.2
    • None
    • None

    Description

      Hi,

      I am using Grouper 2.1.2.

      If I send in this JSON to the attributeAssignments RESTful
      endpoint it works and I receive a list of attribute
      assignments on the immediate membership:

      {
      "WsRestGetAttributeAssignmentsRequest":{
      "actAsSubjectId":"GrouperSystem",
      "attributeAssignType":"imm_mem",
      "includeAssignmentsOnAssignments":"F",
      "includeGroupDetail":"T",
      "wsOwnerMembershipLookups" :[

      { "uuid":"cdcff16d8d8f4148ae8b7a2a8a87c010:0bb468654e91405c9b1461873e44d20c" }

      ]
      }
      }

      But if I send in this JSON, which includes multiple membership
      uuids, it fails:

      {
      "WsRestGetAttributeAssignmentsRequest":{
      "actAsSubjectId":"GrouperSystem",
      "attributeAssignType":"imm_mem",
      "includeAssignmentsOnAssignments":"F",
      "includeGroupDetail":"T",
      "wsOwnerMembershipLookups" :[

      { "uuid":"cdcff16d8d8f4148ae8b7a2a8a87c010:0bb468654e91405c9b1461873e44d20c" }

      ,

      { "uuid":"4ea839c8b5ed4a519cbef121e39ec9e5:70c42e30bfe34638a60fcf522659f4a2" }

      ]
      }
      }

      When it fails I receive this:

      {
      "WsGetAttributeAssignmentsResults": {
      "responseMetadata":

      { "millis": "106", "serverVersion": "2.1.2" }

      ,
      "resultMetadata":

      { "resultCode": "INVALID_QUERY", "resultMessage": "Membership calls can only have membership owner lookups. clientVersion: 2.1.0, attributeAssignType: imm_mem, wsAttributeDefLookups: null, wsAttributeAssignLookups: null, wsAttributeDefNameLookups: null, wsOwnerStemLookups: null, wsOwnerGroupLookups: null, wsOwnerMembershipLookups: Array size: 2: [0]: WsMembershipLookup[uuid=cdcff16d8d8f4148ae8b7a2a8a87c010:0bb468654e91405c9b1461873e44d20c]\n[1]: WsMembershipLookup[uuid=4ea839c8b5ed4a519cbef121e39ec9e5:70c42e30bfe34638a60fcf52..., wsOwnerMembershipAnyLookups: null, wsOwnerAttributeDefLookups: null, actions: null, includeSubjectDetail: false, actAsSubject: null, subjectAttributeNames: null\n, paramNames: \n, params: null\n, wsOwnerSubjectLookups: null, enabled: null, attributeDefValueType: null, theValue: null, includeAssignmentsFromAssignments: false, attributeDefType: null, wsAssignAssignOwnerAttributeAssignLookups: null, wsAssignAssignOwnerAttributeDefLookups: null, wsAssignAssignOwnerAttributeDefNameLookups: null, wsAssignAssignOwnerActions: null", "success": "F" }

      }
      }

      The documentation at

      https://spaces.internet2.edu/display/Grouper/Get+Attribute+Assignments

      says "Accepts multiple groups or subjects or memberhipIds (or
      combination) etc to retrieve lists of attribute assignments".
      That statement led me to think that I could send in multiple
      immediate membership uuids.

      What have I done wrong?

      Thanks,

      Scott

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: