<div dir="ltr">Hi <span style="font-size:12.8px;white-space:nowrap">Attila Szlovak.</span><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">Thank you very much for your answer. It works perfectly. </span></div><div><br></div><div><a class="gmail-m_-5111645661637272143moz-txt-link-freetext" href="http://_ip_address_/midpoint/ws/rest/roles/_oid_?options=raw&options=isImport" target="_blank" style="font-size:12.8px">?options=<wbr>raw&options=isImport</a> <span style="font-size:12.8px;white-space:nowrap">works over curl and over java. T</span><span style="font-size:12.8px;white-space:nowrap">hanks again. </span></div><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">Regards</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-17 15:59 GMT+02:00 Attila Szlovak <span dir="ltr"><<a href="mailto:attila.szlovak@motivum.sk" target="_blank">attila.szlovak@motivum.sk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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="m_-5111645661637272143moz-txt-link-freetext" href="http://_ip_address_/midpoint/ws/rest/roles/_oid_?options=raw&options=isImport" target="_blank">http://_ip_address_/midpoint/<wbr>ws/rest/roles/_oid_?options=<wbr>raw&options=isImport</a><br>
</p>
<pre class="m_-5111645661637272143moz-signature" cols="72">S pozdravom/Best regards/Üdvözlettel,
Attila Szlovák
</pre><div><div class="h5">
<div class="m_-5111645661637272143moz-cite-prefix">On 10/11/2017 01:45 PM, Marcos Arevalo
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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" target="_blank">http://localhost:8080/<wbr>midpoint/ws/rest/users/<wbr>00000000-0000-0000-0000-<wbr>000000000050</a>
-d @/home/midpoint/objects/users/<wbr>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>
</div></div><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"><span>info@corenetworks.es</span></a>.</span></p>
<br>
<fieldset class="m_-5111645661637272143mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_-5111645661637272143moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_-5111645661637272143moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br></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"><span>info@corenetworks.es</span></a>.</span></p>