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

ScriptedREST - patch remove operation doesn't remove values

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • OpenIDM 6.0.0
    • _Samples
    • OpenIDM 5.5.0-SNAPSHOT (55bd93d), OpenDJ 4.0.0 (0b7da454b79), groovy connector 1.4.4.0-SNAPSHOT 5f20a665fc816689930b468a91f829ed63774b68

    Description

      When removing value from groups attribute, IDM returns 200 with unmodified response. Value should be removed from array as expected or IDM should throw Error.

      curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --data '[{"operation":"remove","field":"/groups","value":{"_id": "g2_1495201576"} }]' --request PATCH "http://localhost:8080/openidm/system/scriptedrest/account/u3_1495201576"
      
      Response Content:
      {"_id":"u3_1495201576","displayName":"u3_1495201576 Flemming","familyName":"Flemming","telephoneNumber":"12345","uid":"u3_1495201576","created":"2017-05-19T13:46:36Z","emailAddress":"u3_1495201576@example.com","givenName":"u3_1495201576","groups":[{"_id":"g1_1495201576"},{"_id":"g2_1495201576"}]}
      

      Attachments

        Activity

          People

            katie.gonzalez Katie Gonzalez
            michal.orlik@profiq.cz Michal Orlik
            Michal Orlik Michal Orlik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: