[midPoint] REST API Curl Question

Marcos Arevalo marevalo at corenetworks.es
Fri Oct 20 14:02:10 CEST 2017


Hi Attila Szlovak.

Thank you very much for your answer.  It works perfectly.

?options=raw&options=isImport
<http://_ip_address_/midpoint/ws/rest/roles/_oid_?options=raw&options=isImport>
 works over curl and over java. Thanks again.

Regards

2017-10-17 15:59 GMT+02:00 Attila Szlovak <attila.szlovak at motivum.sk>:

> Hi Marcos,
>
> 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.
>
> e.g.: Invoking PUT on http://_ip_address_/midpoint/
> ws/rest/roles/_oid_?options=raw&options=isImport
>
> S pozdravom/Best regards/Üdvözlettel,
>
> Attila Szlovák
>
> On 10/11/2017 01:45 PM, Marcos Arevalo wrote:
>
> Hello.
>
> 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.
>
> We are talking of this command:
>
> *curl --user administrator:5ecr3t -H "Content-Type: application/xml" -X
> PUT
> http://localhost:8080/midpoint/ws/rest/users/00000000-0000-0000-0000-000000000050
> <http://localhost:8080/midpoint/ws/rest/users/00000000-0000-0000-0000-000000000050>
> -d @/home/midpoint/objects/users/user1 -v*
>
> 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.
>
> 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 ")
>
> In the documentation we have not found any notes about it
>
> Thanks in advance.
>
> 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 info at corenetworks.es.
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>

-- 
 

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 info at corenetworks.es.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171020/7dac5d9d/attachment.htm>


More information about the midPoint mailing list