Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-16110

Validate field on patch remove without validating whole object

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 7.2.0, 2021.6
    • Labels:
      None
    • Target Version/s:

      Description

      Currently, a patch remove operation on a managed object will call validateObject on the policy endpoint. While this catches required attribute violations, it might also trip additional policy violations for fields not being modified. An alternative solution would be to provide validation for fields with no values either as a separate action on the policy endpoint (something like "isAttributeRequired") or by providing the current "validateProperty" a list of all the attributes that have been removed in addition to the attributes values modified by any other patch operations.

      The managed object patch handling logic could then be updated to provide the removed fields to the new/updated policy action.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brmiller Brendan Miller
              Reporter:
              ben.apple Ben Apple
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: