<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px">Thank you Pavol.<br><br>You suggestion to "Add" and "Delete" value has worked.<br><br>Inducements are now not removed.<br><br>Best Regards<br><div id="yui_3_16_0_1_1423722982379_8848"><span></span></div><br>  <div id="yui_3_16_0_1_1423722982379_8851" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 14px;"> <div id="yui_3_16_0_1_1423722982379_8850" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1423722982379_8849" dir="ltr"> <hr id="yui_3_16_0_1_1423722982379_8856" size="1">  <font id="yui_3_16_0_1_1423722982379_8855" face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Pavol Mederly <mederly@evolveum.com><br> <b><span style="font-weight: bold;">To:</span></b> midpoint@lists.evolveum.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 11, 2015 11:52 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [midPoint] Fw: URGENT ... Role inducements lost on role updates<br> </font> </div> <div id="yui_3_16_0_1_1423722982379_8854" class="y_msg_container"><br><div id="yiv4481223812"><div id="yui_3_16_0_1_1423722982379_8853">
    <div id="yui_3_16_0_1_1423722982379_8852" class="yiv4481223812moz-cite-prefix">Hello Dharmendra,<br clear="none">
      <br clear="none">
      looking at your WS request: it is of REPLACE type, see:<br clear="none">
      <br clear="none">
      <objectDelta ... ><br clear="none">
      ...        <br clear="none">
         <t:itemDelta><br clear="none">
            <t:modificationType><b>replace</b></t:modificationType><br clear="none">
               <t:path>c:<b>inducement</b></t:path><br clear="none">
               <t:value id="2"><br clear="none">
                   ...<br clear="none">
               </t:value><br clear="none">
         </t:itemDelta><br clear="none">
      ...<br clear="none">
      <br clear="none">
      So, basically you tell midPoint that you want to REPLACE the
      values of <b>inducement</b><b> </b>item with the ones you have
      provided.<br clear="none">
      And you've provided one value with id=2 and content of account
      construction on resource d0811790-1d80-11e4-86b2-3c970e467874.<br clear="none">
      So after the operation, the original inducement with id=1 should
      be gone.<br clear="none">
      <br clear="none">
      Is this what you wanted to do? Perhaps no.<br clear="none">
      <br clear="none">
      If you want to replace only one value in multi-valued item, you
      have to<br clear="none">
      1) delete old value<br clear="none">
      2) add new value<br clear="none">
      <br clear="none">
      And, I'm not quite sure about your first mail (Manish Baid,
      received 01:14). Aren't the contents of files "original.xml" and
      "after_addRoleInducement.xml" swapped? Because original.xml
      corresponds to the state with only one inducement, while the file
      "after_addRoleInducement.xml" contains two inducements. Just
      opposite as I would expect, given the messages you wrote.<br clear="none">
      <br clear="none">
      Best regards,<br clear="none">
      Pavol<br clear="none">
      <br clear="none">
      <div class="qtdSeparateBR"><br><br></div><div class="yiv4481223812yqt4446427491" id="yiv4481223812yqtfd88063"><br clear="none">
      On 12. 2. 2015 8:39, Dharmendra Parakh wrote:<br clear="none">
    </div></div><div class="yiv4481223812yqt4446427491" id="yiv4481223812yqtfd98576">
    <blockquote type="cite">
      <div dir="ltr">Hi Ivan 
        <div><br clear="none">
          <div>Thanks for your reply. jira you have pointed is might be
            related to UI only and what i observed is if i use model web
            service to modify one inducement it is deleting other
            inducements.</div>
        </div>
        <div><br clear="none">
        </div>
        <div>We are using the master branch so latest midpoint version.</div>
        <div><br clear="none">
        </div>
        <div>Regards</div>
        <div>Dharmendra</div>
      </div>
      <div class="yiv4481223812gmail_extra"><br clear="none">
        <div class="yiv4481223812gmail_quote">On Thu, Feb 12, 2015 at 1:01 PM, Ivan
          Noris <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:ivan.noris@evolveum.com" target="_blank" href="mailto:ivan.noris@evolveum.com">ivan.noris@evolveum.com</a>></span>
          wrote:<br clear="none">
          <blockquote class="yiv4481223812gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
            <div> Hi,<br clear="none">
              <br clear="none">
              I believe this is the issue: <a rel="nofollow" shape="rect" target="_blank" href="https://jira.evolveum.com/browse/MID-2113">https://jira.evolveum.com/browse/MID-2113</a>
              and it should be fixed, but please see the comment in
              JIRA.<br clear="none">
              <br clear="none">
              Also, what version of midPoint are you using?<br clear="none">
              <br clear="none">
              Thanks,<br clear="none">
              regards<br clear="none">
              Ivan
              <div>
                <div class="yiv4481223812h5"><br clear="none">
                  <br clear="none">
                  <div>On 02/12/2015 08:08 AM, Dharmendra Parakh wrote:<br clear="none">
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="yiv4481223812h5">
                    <div dir="ltr">Hi Radovan
                      <div><br clear="none">
                      </div>
                      <div>Additional Information:</div>
                      <div><br clear="none">
                      </div>
                      <div>We have a requirement to update the role
                        inducement from web service client, where we
                        have to add/delete some resource attributes.</div>
                      <div><br clear="none">
                      </div>
                      <div>In our scenario we have a role with multiple
                        inducements (let say one role and one resource
                        inducement). Now i want to add some additional
                        attribute-values in resource inducement. To do
                        this we calculate the correct inducement
                        (AssignmentType) object with all current
                        attributes and try to replace this inducement. </div>
                      <div>Earlier this was working for us but now when
                        we do this other inducement information is lost
                        (induced role is no longer available in role).</div>
                      <div><br clear="none">
                      </div>
                      <div>I am attaching the request xml with the
                        mail...</div>
                      <div><br clear="none">
                      </div>
                      <div><br clear="none">
                      </div>
                      <div><br clear="none">
                      </div>
                      <div><br clear="none">
                      </div>
                      <div>Regards</div>
                      <div>Dharmendra</div>
                      <div><br clear="none">
                      </div>
                    </div>
                    <div class="yiv4481223812gmail_extra"><br clear="none">
                      <div class="yiv4481223812gmail_quote">On Thu, Feb 12, 2015 at
                        12:03 PM, Manish Baid <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:baid_manish@yahoo.com" target="_blank" href="mailto:baid_manish@yahoo.com">baid_manish@yahoo.com</a>></span>
                        wrote:<br clear="none">
                        <blockquote class="yiv4481223812gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
                          <div>
                            <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px;">
                              <div>Hi Radovan,</div>
                              <div dir="ltr">We are showing a demo to
                                our clients, looks like with recent 3.1
                                release, inducement update is behaving
                                differently.</div>
                              <div dir="ltr"><br clear="none">
                              </div>
                              <div dir="ltr">If you can work with
                                Dharmendra to work through this (he is
                                in India timezone, will be available in
                                your mornings), it would be of great
                                help.</div>
                              <div dir="ltr"><br clear="none">
                              </div>
                              <div dir="ltr"><br clear="none">
                              </div>
                              <div dir="ltr"><br clear="none">
                              </div>
                              <div dir="ltr">Thanks<br clear="none">
                              </div>
                              <div>
                                <div>
                                  <div><span></span></div>
                                  <br clear="none">
                                  <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px;">
                                    <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
                                      <div dir="ltr"> ----- Forwarded
                                        Message -----<br clear="none">
                                        <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b>
                                          Manish Baid <<a rel="nofollow" shape="rect" ymailto="mailto:baid_manish@yahoo.com" target="_blank" href="mailto:baid_manish@yahoo.com">baid_manish@yahoo.com</a>><br clear="none">
                                          <b><span style="font-weight:bold;">To:</span></b>
                                          midPoint General Discussion
                                          <<a rel="nofollow" shape="rect" ymailto="mailto:midpoint@lists.evolveum.com" target="_blank" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>>

                                          <br clear="none">
                                          <b><span style="font-weight:bold;">Cc:</span></b>
                                          Dharmendra Parakh <<a rel="nofollow" shape="rect" ymailto="mailto:dharmendra@confluxsys.com" target="_blank" href="mailto:dharmendra@confluxsys.com">dharmendra@confluxsys.com</a>>;

                                          Indrajit Chauhan <<a rel="nofollow" shape="rect" ymailto="mailto:indrajit@confluxsys.com" target="_blank" href="mailto:indrajit@confluxsys.com">indrajit@confluxsys.com</a>>

                                          <br clear="none">
                                          <b><span style="font-weight:bold;">Sent:</span></b>
                                          Wednesday, February 11, 2015
                                          4:14 PM<br clear="none">
                                          <b><span style="font-weight:bold;">Subject:</span></b>
                                          URGENT ... Role inducements
                                          lost on role updates<br clear="none">
                                        </font> </div>
                                      <div><br clear="none">
                                        <div>
                                          <div>
                                            <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px;">
                                              <div dir="ltr">Hi,</div>
                                              <div dir="ltr">With 3.1
                                                release code (and also
                                                after MID-2194), when
                                                inducement/s is/are
                                                updated in a role, other
                                                related indcuments are
                                                removed.</div>
                                              <div dir="ltr"><br clear="none">
                                              </div>
                                              <div dir="ltr">Here is an
                                                example:</div>
                                              <div dir="ltr"><br clear="none">
                                              </div>
                                              <div dir="ltr">* Role had
                                                an indcument: "LDAP
                                                Account" with 3 group
                                                memberships</div>
                                              <div dir="ltr">* Role is
                                                modified to add a role
                                                inducement (role
                                                hierarchy) </div>
                                              <div dir="ltr"><br clear="none">
                                              </div>
                                              <div dir="ltr">Observation:
                                                3 group memberships that
                                                were part of "Ldap
                                                Account" inducments are
                                                removed. <br clear="none">
                                              </div>
                                              <div dir="ltr"><br clear="none">
                                              </div>
                                              <div dir="ltr">Please see
                                                object XMLs of before
                                                and after.</div>
                                              <div dir="ltr"><br clear="none">
                                              </div>
                                              <div dir="ltr">Thanks<br clear="none">
                                              </div>
                                              <div><br clear="none">
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                        <br clear="none">
                                        <br clear="none">
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br clear="none">
                    </div>
                    <br clear="none">
                    <fieldset></fieldset>
                    <br clear="none">
                  </div>
                </div>
                <pre>_______________________________________________
midPoint mailing list
<a rel="nofollow" shape="rect" ymailto="mailto:midPoint@lists.evolveum.com" target="_blank" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><span class="yiv4481223812HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="yiv4481223812HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="yiv4481223812HOEnZb"><font color="#888888"> <br clear="none">
                  </font></span><pre>-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  <a rel="nofollow" shape="rect" target="_blank" href="http://evolveum.com/">evolveum.com</a>     <a rel="nofollow" shape="rect" target="_blank" href="http://evolveum.com/blog/">evolveum.com/blog/</a>
  _____________________________________________
  "Semper Id(e)M Vix."
</pre>
                </div>
            <br clear="none">
            _______________________________________________<br clear="none">
            midPoint mailing list<br clear="none">
            <a rel="nofollow" shape="rect" ymailto="mailto:midPoint@lists.evolveum.com" target="_blank" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br clear="none">
            <a rel="nofollow" shape="rect" target="_blank" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br clear="none">
            <br clear="none">
          </blockquote>
        </div>
        <br clear="none">
      </div>
      <br clear="none">
      <fieldset class="yiv4481223812mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
midPoint mailing list
<a rel="nofollow" shape="rect" class="yiv4481223812moz-txt-link-abbreviated" ymailto="mailto:midPoint@lists.evolveum.com" target="_blank" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a rel="nofollow" shape="rect" class="yiv4481223812moz-txt-link-freetext" target="_blank" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br clear="none">
  </div></div></div><br><div class="yqt4446427491" id="yqtfd31069">_______________________________________________<br clear="none">midPoint mailing list<br clear="none"><a shape="rect" ymailto="mailto:midPoint@lists.evolveum.com" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br clear="none"><a shape="rect" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br clear="none"></div><br><br></div> </div> </div>  </div></body></html>