[midPoint] Error when updating task via REST call

Pavol Mederly mederly at evolveum.com
Mon Jan 9 14:55:28 CET 2017


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 developer
evolveum.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 <mailto:apereyra at identicum.com>/
> www.identicum.com <http://www.identicum.com/>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170109/e88736f4/attachment.htm>


More information about the midPoint mailing list