[midPoint] Error when updating task via REST call

Ana Pereyra apereyra at identicum.com
Mon Jan 9 15:29:29 CET 2017


Thank you very much for your answer, Pavol.

Best regards

2017-01-09 10:55 GMT-03:00 Pavol Mederly <mederly at evolveum.com>:

> Hello Ana,
>
> yes, tasks are a bit different in this respect. (Partly caused by the fact
> that there can be more tasks with the same name; this is not possible for
> majority of other object types.)
>
> There are three possible solutions:
>
>    1. update the task by executing "modify" (REST POST) operation instead
>    of "overwrite" (REST PUT) operation;
>    2. keep using REST PUT, but delete the task beforehand;
>    3. file a JIRA request to fix this bug (but I cannot guarantee it will
>    be done quickly).
>
> Best regards,
>
> Pavol Mederly
> Software developerevolveum.com
>
> On 03.01.2017 16:33, Ana Pereyra wrote:
>
> Hi everyone. Happy New Year!
>
> I'm writing because I have the following issue.
>
> When I try to perform an update of a task object via rest (using PUT
> method), I get the error 500 "Object 'TaskType' with oid 'XXXXXXXXXXXXXX'
> already exists."
>
> This only happens with tasks; it works fine for roles, resources, value
> policies, and others.
>
> Do I need to approach this tasks updates in a different way?
>
> Thanks in advance.
> Regards
>
> --
> *Ana Pereyra*
>  Identicum S.A.
>
> *Jorge Newbery 3226, Argentina Tel: +54 (11) **4552.3050*
> *apereyra at identicum.com <apereyra at identicum.com>*
> www.identicum.com
>
>
> _______________________________________________
> 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
>
>


-- 
*Ana Pereyra*
 Identicum S.A.

*Jorge Newbery 3226, ArgentinaTel: +54 (11) **4552.3050*
*apereyra at identicum.com <apereyra at identicum.com>*
www.identicum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170109/74ce9899/attachment.htm>


More information about the midPoint mailing list