<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Marcos,</p>
    <p>if you start Eclipse from the terminal window then the midPoint
      plugin writes some info to the stdout (there is also the URL with
      some additional parameters) what can you help how to construct the
      URL for curl.<br>
    </p>
    <p>e.g.: Invoking PUT on
<a class="moz-txt-link-freetext" href="http://_ip_address_/midpoint/ws/rest/roles/_oid_?options=raw&options=isImport">http://_ip_address_/midpoint/ws/rest/roles/_oid_?options=raw&options=isImport</a><br>
    </p>
    <pre class="moz-signature" cols="72">S pozdravom/Best regards/Üdvözlettel,

Attila Szlovák
</pre>
    <div class="moz-cite-prefix">On 10/11/2017 01:45 PM, Marcos Arevalo
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFdx=BBR0-Yh-HVYsM52cuZX2st-37+0vgT5q_AWzUJOjxwd-w@mail.gmail.com">
      <div dir="ltr">Hello. 
        <div><br>
        </div>
        <div>
          <div>When we upload a object  that has references, 
            (assignments, shadows) ,   we get validation errors. For
            example, the upload  of a user  that has a shadow, fails.
            The upload a role, which has an assignment to an org (a
            parent org ), if this org is not uploaded, it also fails: it
            returns always an error 500.</div>
          <div><br>
          </div>
          <div>We are talking of this command: </div>
          <div><br>
          </div>
          <div><font size="1" face="monospace, monospace"><i>curl --user
                administrator:5ecr3t -H "Content-Type: application/xml"
                -X PUT <a
href="http://localhost:8080/midpoint/ws/rest/users/00000000-0000-0000-0000-000000000050"
                  moz-do-not-send="true">http://localhost:8080/midpoint/ws/rest/users/00000000-0000-0000-0000-000000000050</a>
                -d @/home/midpoint/objects/users/user1 -v</i></font></div>
          <div><br>
          </div>
          <div>When we use the eclipse pligun we do not get any error, 
            it forces it,   and  upload  with the "broken reference". 
             Also midpoint aplication, in   import objets tool, you can
            force it if any error is found.</div>
          <div><br>
          </div>
          <div>My question is:   Is there a way to "force"   this upload
            with the "curl "command,  with any argument  so that it does
            not validate the  dependencies that return an error?  (some
            like  " --notValidate ")</div>
          <div><br>
          </div>
          <div>In the documentation we have not found any notes about
            it </div>
          <div><br>
          </div>
          <div>Thanks in advance.</div>
        </div>
      </div>
      <br>
      <p><span>Segun el Articulo 5 de la L.O.P.D, le informamos que sus
          datos constan en un fichero titularidad de CORE NETWORKS,
          S.L., cuya finalidad es la gestion administrativa. Podra
          ejercer su derecho de acceso, rectificacion, cancelacion y
          oposicion mediante correo postal a C/ Serrano Galvache, 56,
          Edificio Olmo, 1 Planta - C.P. 28033 (MADRID), o enviando un
          correo electrónico a <a href="mailto:info@corenetworks.es"
            target="_blank" moz-do-not-send="true"><span>info@corenetworks.es</span></a>.</span></p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>