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

WS error handling based on poor input values

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • 2.2.0, 2.3.0
    • WS
    • None
    • 2.2, 2.3

    Description

      WS input to identify an object when a null/empty "UUID"="" value and "NAME"="a value" supplied.

      returns no results
      instead of:

      • ignoring empty UUID value
      •    or
      • identifying that no search could be done due to missing/bad Lookup values.

      This likely could be extended to error handling additions for conditions like:
      What to do when UUID="a value" and NAME="an Other value" and no matching object is found.

      Example input WS calls:
      POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments
      {
      ...
      "WsRestGetAttributeAssignmentsRequest":{
      "attributeAssignType":"group",
      "includeAssignmentsOnAssignments":"T",
      "wsOwnerGroupLookups":[
      {
      "name":"bla:bla:foo:bar",
      "uuid":""
      }
      ]
      }
      ...
      }

      POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments
      {
      ...
      "WsRestGetAttributeAssignmentsRequest":{
      "attributeAssignType":"group",
      "includeAssignmentsOnAssignments":"T",
      "wsOwnerGroupLookups":[
      {
      "name":"",
      "uuid":"bla-bla-bla"
      }
      ]
      }
      ...
      }

      POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments
      {
      ...
      "WsRestGetAttributeAssignmentsRequest":{
      "attributeAssignType":"group",
      "includeAssignmentsOnAssignments":"T",
      "wsOwnerGroupLookups":[
      {
      "name":"bla:bla:foo:bar",
      "uuid":"bla-bla-bla"
      }
      ]
      }
      ...
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: