Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-799

Policy API Validation Does Not Validate Required Parent Attributes in the Model

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Beijing Release, Casablanca Release
    • Casablanca Release
    • None

    Description

      When calling createPolicy or updatePolicy the validation of the model content is not validating the "required" parent attributes in the request.  The recursive call that extracts the child attributes and sets key/value pairs does not recognize the parent attribute if the value is enclosed in { } or [ ] in the JSON of the request.  Attached is an email with more detail and an example of the bug.  The workaround is to only set child attributes of the parent to be required and not the parent itself.

      RE Policy-OOF pairwise testing is failed.msg

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            mmokry Michael Mokry
            mmokry Michael Mokry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: