<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
I've fixed that today in master. So in 3.6 no workaround will be
needed.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
On 01/24/2017 03:12 PM, Nicolas Rossi wrote:<br>
</div>
<blockquote
cite="mid:CAAxX8cg4iGDe__W-+zNq4Ynpb8v9hY11X+wNwkdSxrkdNOhgyg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:#444444">Hi
Martin, thank you for the example. I have reported the issue
on JIRA and I will wait a couple of days to get it resolved.
In the meantime we moved the business logic to the resources
mappings (we have 2 resources to populate midPoint) and it's
working now.</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:#444444">Regards,</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
face="arial, helvetica,
sans-serif"><br>
<br>
<font color="#444444">Ing
Nicolás Rossi</font><br>
<font color="#999999">Identicum
S.A.</font><br>
<font color="#999999">Jorge
Newbery 3226</font><br>
<font color="#999999">Tel:
+54 (11) 4552-3050</font><br>
<font color="#999999"><a
moz-do-not-send="true"
href="http://www.identicum.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.identicum.com">www.identicum.com</a></a></font></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Jan 24, 2017 at 10:17 AM,
Martin Lízner - AMI Praha a.s. <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:martin.lizner@ami.cz"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:martin.lizner@ami.cz">martin.lizner@ami.cz</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">This is our code to workaround the problem:
<div><br>
</div>
<div>
<div><mapping></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><name>Effective
Status management</name></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><strength>strong</strength></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><source></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:path>$focus/activation/<wbr>administrativeStatus</c:path></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></source></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><source></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:path>$focus/activation/<wbr>validFrom</c:path></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></source></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><expression></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><script></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><code></div>
<div> import
com.evolveum.midpoint.common.<wbr>Clock;</div>
<div> import javax.xml.datatype.<wbr>DatatypeConstants;</div>
<div> import javax.xml.datatype.<wbr>XMLGregorianCalendar;</div>
<div> import
com.evolveum.midpoint.xml.ns._<wbr>public.common.common_3.<wbr>ActivationStatusType;</div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>if
(validFrom==null || administrativeStatus ==null ||
administrativeStatus==<wbr>ActivationStatusType.DISABLED)<wbr>{</div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>//<a
moz-do-not-send="true" href="http://log.info"
target="_blank">log.info</a>("XXXX Effective Status
code res. "+ActivationStatusType.<wbr>DISABLED);</div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>return
ActivationStatusType.DISABLED;<span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>}</div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div> <span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>//<a
moz-do-not-send="true" href="http://log.info"
target="_blank">log.info</a>("XXXX Effective Status
code - validFrom: ["+validFrom+"] adminStatus:
["+administrativeStatus+"]");</div>
<div> </div>
<div> boolean isDisabled =
ActivationStatusType.ENABLED != administrativeStatus;</div>
<div> </div>
<div> XMLGregorianCalendar now = (new
Clock()).<wbr>currentTimeXMLGregorianCalenda<wbr>r();</div>
<div> boolean isFuture =
DatatypeConstants.LESSER == now.compare(validFrom)</div>
<div> </div>
<div> //<a moz-do-not-send="true"
href="http://log.info" target="_blank">log.info</a>("XXXX
Effective Status code res. "+((isDisabled ||
isFuture)?<wbr>ActivationStatusType.DISABLED:<wbr>ActivationStatusType.ENABLED))<wbr>; </div>
<div> </div>
<div> return (isDisabled || isFuture)?<wbr>ActivationStatusType.DISABLED:<wbr>ActivationStatusType.ENABLED;</div>
<div> </code></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></script></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></expression></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><target></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:path>$focus/activation/<wbr>effectiveStatus</c:path></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></target></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><evaluationPhase><wbr>beforeAssignments</<wbr>evaluationPhase></div>
<div><span class="m_8824597261406383534gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></mapping></div>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="m_8824597261406383534gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<table
style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important">
<tbody>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="2"
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;border:0px
solid gray!important">
<p><span
style="font-size:14px;font-weight:bold">Martin
Lízner</span><br>
solution architect<br>
<br>
gsm: [+420] 737 745 571<br>
e-mail: <a
moz-do-not-send="true"
href="mailto:martin.lizner@ami.cz"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:martin.lizner@ami.cz">martin.lizner@ami.cz</a></a></p>
</td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
solid gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;border:0px
solid gray!important">
<p>AMI Praha a.s.<br>
Pláničkova 11<br>
162 00 Praha 6<br>
tel.: [+420] 274 783 239<br>
web: <a
moz-do-not-send="true"
href="http://www.ami.cz/"
target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.ami.cz">www.ami.cz</a></a></p>
</td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
solid gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;border:0px
solid gray!important">
<p><img moz-do-not-send="true"
src="http://www.ami.cz/images/podpis/ami_logo.gif" alt=""
style="border:0px"></p>
</td>
</tr>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="8"
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
solid gray!important"><br>
</td>
</tr>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="8"
style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px
solid gray!important">
<table
style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important">
<tbody>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="7"
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px
solid gray!important"><br>
<a
moz-do-not-send="true"
href="http://www.skyidentity.com/" target="_blank"><img
moz-do-not-send="true"
src="http://www.ami.cz/images/podpis/AMI-podpis-Sky.png" alt="AMI Praha
a.s."
style="border:0px;width:480px!important;height:82px!important"></a></td>
</tr>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="7"
style="font-family:Arial,sans-serif;padding:0px;border:0px
solid gray!important"><br>
</td>
</tr>
</tbody>
</table>
Textem tohoto e-mailu
podepisující neslibuje uzavřít
ani neuzavírá za společnost
AMI Praha a.s.<br>
jakoukoliv smlouvu. Každá
smlouva, pokud bude uzavřena,
musí mít výhradně písemnou
formu.</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="h5">
<br>
<div class="gmail_quote">2017-01-24 13:52 GMT+01:00
Nicolas Rossi <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:nrossi@identicum.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:nrossi@identicum.com">nrossi@identicum.com</a></a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Ok,
I opened it on JIRA: <a moz-do-not-send="true"
href="https://jira.evolveum.com/projects/MID/issues/MID-3695"
target="_blank">https://jira.evolveum.co<wbr>m/projects/MID/issues/MID-3695</a></div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Regards,</div>
</div>
<div class="gmail_extra"><span><br clear="all">
<div>
<div
class="m_8824597261406383534m_-6365584593450959818gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
face="arial,
helvetica,
sans-serif"><br>
<br>
<font
color="#444444">Ing
Nicolás Rossi</font><br>
<font
color="#999999">Identicum
S.A.</font><br>
<font
color="#999999">Jorge
Newbery 3226</font><br>
<font
color="#999999">Tel:
<a
moz-do-not-send="true"
href="tel:+54%2011%204552-3050" value="+541145523050" target="_blank">+54
(11) 4552-3050</a></font><br>
<font
color="#999999"><a
moz-do-not-send="true" href="http://www.identicum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.identicum.com">www.identicum.com</a></a></font></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</span>
<div>
<div class="m_8824597261406383534h5">
<div class="gmail_quote">On Tue, Jan 24,
2017 at 6:23 AM, Radovan Semancik <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:radovan.semancik@evolveum.com" target="_blank">radovan.semancik@evolveum.com</a><wbr>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
You are right. You should not change
validityStatus or effectiveStatus.
MidPoint should recompute that
automatically. I haven't had chance to
have a closer look at the issue. But
it looks like a bug. Could you create
a jira for that please? Please compile
the information in the jira
description or just point to the
relevant mailing list messages. I will
look at that issue as soon as I can
find a bit of time.<span
class="m_8824597261406383534m_-6365584593450959818HOEnZb"><font
color="#888888"><br>
<br>
<pre class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-signature" cols="72">--
Radovan Semancik
Software Architect
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
</font></span>
<div>
<div
class="m_8824597261406383534m_-6365584593450959818h5">
<br>
<br>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-cite-prefix">On
01/23/2017 10:31 PM, Nicolas
Rossi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Maybe this could
help to the midPoint
developers: we added some logs
to the ActivationComputer
class. We have a disabled user
and when we change the validTo
value from the User Template,
the <b>getEffectiveStatus()
returns ENABLED</b>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68);display:inline">
but the user is still
disabled.</div>
<div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68);display:inline"><br>
</div>
</div>
<div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68);display:inline">Current
value:</div>
</div>
<div>
<div><font face="monospace,
monospace"
color="#444444">
<activation></font></div>
<div><font
style="background-color:rgb(182,215,168)"
face="monospace,
monospace"
color="#444444">
<effectiveStatus>disabled</eff<wbr>ectiveStatus></font></div>
<div><font
style="background-color:rgb(182,215,168)"
face="monospace,
monospace"
color="#444444">
<validTo>2016-04-30T00:00:00.0<wbr>00-03:00</validTo></font></div>
<div><font
style="background-color:rgb(182,215,168)"
face="monospace,
monospace"
color="#444444">
<validityStatus>after</validit<wbr>yStatus></font></div>
<div><font face="monospace,
monospace"
color="#444444">
<disableTimestamp>2017-01-23T1<wbr>6:49:49.776-03:00</disableTime<wbr>stamp></font></div>
<div><font face="monospace,
monospace"
color="#444444">
<enableTimestamp>2017-01-23T16<wbr>:49:09.338-03:00</enableTimest<wbr>amp></font></div>
<div><font face="monospace,
monospace"
color="#444444">
<validityChangeTimestamp>2017-<wbr>01-23T16:49:49.776-03:00</vali<wbr>dityChangeTimestamp></font></div>
<div><font face="monospace,
monospace"
color="#444444">
</activation></font></div>
</div>
<div><font face="arial,
helvetica, sans-serif"
color="#444444"><br>
</font></div>
<div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68);display:inline">After
modification</div>
</div>
<div><font face="arial,
helvetica, sans-serif"
color="#444444"><br>
</font></div>
<div><font face="monospace,
monospace" color="#444444">
<div> <activation></div>
<div><span
style="background-color:rgb(234,153,153)">
<effectiveStatus>disabled</eff<wbr>ectiveStatus></span></div>
<div><span
style="background-color:rgb(234,153,153)">
<validTo>2017-02-01T00:00:00.0<wbr>00-03:00</validTo></span></div>
<div><span
style="background-color:rgb(234,153,153)">
<validityStatus>after</validit<wbr>yStatus></span></div>
<div>
<disableTimestamp>2017-01-23T1<wbr>6:49:49.776-03:00</disableTime<wbr>stamp></div>
<div>
<enableTimestamp>2017-01-23T16<wbr>:49:09.338-03:00</enableTimest<wbr>amp></div>
<div>
<validityChangeTimestamp>2017-<wbr>01-23T16:49:49.776-03:00</vali<wbr>dityChangeTimestamp></div>
<div>
</activation></div>
</font></div>
<div><font face="arial,
helvetica, sans-serif"
color="#444444"><br>
</font></div>
<div><font face="arial,
helvetica, sans-serif"
color="#444444">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68);display:inline">It
sounds like a bug.
Should I open it on JIRA
?</div>
</font></div>
<div><font face="arial,
helvetica, sans-serif"
color="#444444">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68);display:inline"></div>
<br>
</font>
<div class="gmail_extra">
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
face="arial,
helvetica,
sans-serif"><br>
<font
color="#444444">Ing
Nicolás Rossi</font><br>
<font
color="#999999">Identicum
S.A.</font><br>
<font
color="#999999">Jorge
Newbery 3226</font><br>
<font
color="#999999">Tel:
<a
moz-do-not-send="true"
href="tel:+54%2011%204552-3050" value="+541145523050" target="_blank">+54
(11) 4552-3050</a></font><br>
<font
color="#999999"><a
moz-do-not-send="true"
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-abbreviated"
href="http://www.identicum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.identicum.com">www.identicum.com</a></a></font></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On
Mon, Jan 23, 2017 at
4:46 PM, Rodrigo Yanis <span
dir="ltr"><<a
moz-do-not-send="true"
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-abbreviated"
href="mailto:ryanis@identicum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ryanis@identicum.com">ryanis@identicum.com</a></a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px
0px
0.8ex;border-left:1px
solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hello everyone,</div>
<div><br>
</div>
<div>Extending the
case exposed by
Nicolás, we also
added a mapping on
the User Template
to target on the
administrativeStatus
attribute the
following way
(simplified): </div>
<div><br>
</div>
<blockquote
class="gmail_quote"
style="margin:0px
0px 0px
0.8ex;border-left:1px
solid
rgb(204,204,204);padding-left:1ex"><font
size="1"><mapping><br>
</font><font
size="1">
...<br>
</font><font
size="1">
<expression><br>
</font><font
size="1">
<script><br>
</font><font
size="1">
<language><a
moz-do-not-send="true"
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-freetext"
href="http://midpoint.evol" target="_blank"><a class="moz-txt-link-freetext" href="http://midpoint.evol">http://midpoint.evol</a></a><a
moz-do-not-send="true"
href="http://veum.com/xml/ns/public/express" target="_blank"><wbr>veum.com/xml/ns/public/express</a><wbr>ion/language#Groovy</language><br>
</font><font
size="1">
<code><br>
</font><font
size="1">
import
com.evolveum.midpoint.xml.ns._<wbr>public.common.common_3.Activat<wbr>ionStatusType;<br>
</font><font
size="1">
<br>
</font><font
size="1">
...<br>
</font><font
size="1">
return
ActivationStatusType.DISABLED;<br>
</font><font
size="1"> </code><br>
</font><font
size="1">
</script><br>
</font><font
size="1">
</expression><br>
</font><font
size="1">
<target><br>
</font><font
size="1">
<b> <c:path>$user/activation/admi<wbr>nistrativeStatus</c:path></b><br>
</font><font
size="1">
</target><br>
</font><font
size="1">
</mapping></font></blockquote>
<div><br>
</div>
<div>When the user
is imported
disabled from HR,
effectiveStatus
remains enabled
even though
validTo is expired
and
administrativeStatus
is set to disabled
on UserTemplates'
account. </div>
<span
style="color:rgb(38,50,56);font-size:13px">
<div><span
style="color:rgb(38,50,56);font-size:13px"><br>
</span></div>
</span>
<blockquote
class="gmail_quote"
style="margin:0px
0px 0px
0.8ex;border-left:1px
solid
rgb(204,204,204);padding-left:1ex"><font
size="1"><activation><br>
</font><font
size="1"><b>
<administrativeStatus>disable<wbr>d</administrativeStatus><br>
</b></font><font
size="1"><b>
<effectiveStatus>enabled</eff<wbr>ectiveStatus></b><br>
</font><font
size="1">
<validFrom>2013-07-20T00:00:0<wbr>0.000-03:00</validFrom><br>
</font><font
size="1"> <b>
<validTo>2015-07-20T00:00:00.<wbr>000-03:00</validTo><br>
</b></font><font
size="1"><b>
<validityStatus>in</validityS<wbr>tatus></b><br>
</font><font
size="1">
<enableTimestamp>2017-01-23T1<wbr>6:17:36.013-03:00</enableTimes<wbr>tamp><br>
</font><font
size="1">
<validityChangeTimestamp>2017<wbr>-01-23T16:17:36.013-03:00</val<wbr>idityChangeTimestamp><br>
</font><font
size="1">
</activation></font></blockquote>
<div><br>
</div>
<div>Thankful for
any advise,<br>
</div>
</div>
<div
class="gmail_extra"><br
clear="all">
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail-m_9176653237689097091gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<div dir="ltr"><font
face="arial,
helvetica,
sans-serif"><b>Rodrigo
Yanis.</b><br>
<img
moz-do-not-send="true"
src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>
</font>Jorge
Newbery 3226<br>
Tel: <a
moz-do-not-send="true"
href="tel:+54%2011%204824-9971" value="+541148249971" target="_blank">+54
(11) 4824-9971</a><font
face="arial,
helvetica,
sans-serif"><br>
<a
moz-do-not-send="true"
href="mailto:ryanis@identicum.com" target="_blank"><font color="#0b5394"><a class="moz-txt-link-abbreviated" href="mailto:ryanis@identicum.com">ryanis@identicum.com</a></font></a><br>
<a
moz-do-not-send="true"
href="http://www.identicum.com/" target="_blank"><font color="#0b5394"><a class="moz-txt-link-abbreviated" href="http://www.identicum.com">www.identicum.com</a></font></a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div
class="gmail_quote">
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail-h5">2017-01-23
10:21
GMT-03:00
Nicolas Rossi
<span
dir="ltr"><<a
moz-do-not-send="true"
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-abbreviated"
href="mailto:nrossi@identicum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:nrossi@identicum.com">nrossi@identicum.com</a></a>></span>:<br>
</div>
</div>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail-h5">
<div dir="ltr">
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">
<div>Hi guys,
we have
reproduced
this issue on
a fresh
install of
midPoint 3.5.
These are the
steps to
reproduce it:</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<ol
style="color:rgb(68,68,68);font-family:arial,helvetica,sans-serif;font-size:small">
<li
style="margin-left:15px">Extended
the schema
with 2
attributes (a
flag and a
date) →
user.xsd</li>
<li
style="margin-left:15px">Created
a UserTemplate
mapping the
custom date to
the validTo if
the flag is
active. →
user_template.xml<br>
</li>
<li
style="margin-left:15px">Assigned
the
UserTemplate
as the default
template for
users.</li>
<li
style="margin-left:15px">Create
a user</li>
<li
style="margin-left:15px">Modify
the user
setting the
flag and a
date before
today</li>
</ol>
<div
style="color:rgb(68,68,68);font-family:arial,helvetica,sans-serif;font-size:small">Result:</div>
<div>
<ul>
<li
style="margin-left:15px"><font
face="arial,
helvetica,
sans-serif"
color="#444444">The
validTo date
is mapped
correctly </font></li>
<li
style="margin-left:15px"><font
face="arial,
helvetica,
sans-serif"
color="#444444">The
user is still
enabled</font></li>
</ul>
<div><font
face="arial,
helvetica,
sans-serif"
color="#444444">Regards,</font></div>
</div>
</div>
</div>
</div>
<div
class="gmail_extra"><span><br
clear="all">
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail-m_9176653237689097091m_3499942527170424721gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
face="arial,
helvetica,
sans-serif"><br>
<br>
<font
color="#444444">Ing
Nicolás Rossi</font><br>
<font
color="#999999">Identicum
S.A.</font><br>
<font
color="#999999">Jorge
Newbery 3226</font><br>
<font
color="#999999">Tel:
+54
(11) 4552-3050</font><br>
<font
color="#999999"><a
moz-do-not-send="true"
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-abbreviated"
href="http://www.identicum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.identicum.com">www.identicum.com</a></a></font></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</span>
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail-m_9176653237689097091h5">
<div
class="gmail_quote">On
Sun, Jan 22,
2017 at 8:30
AM, Nicolas
Rossi <span
dir="ltr"><<a
moz-do-not-send="true"
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-abbreviated"
href="mailto:nrossi@identicum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:nrossi@identicum.com">nrossi@identicum.com</a></a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Hi
guys, we have
a User
Template that
defines the
validTo date
evaluating 2
different
dates. When a
user is active
and the
calculated
validTo date
is before
today the user
is not being
disabled by
midpoint as we
expected. I
found a little
difference
between this
user and other
one not
handled by the
user template,
on the
activation
node it has
validityStatus=in
instead of
validityStatus=after:</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)"><br>
</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">User
disabled OK
(changed from
GUI, not from
the
UserTemplate):</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)"><br>
</div>
<div
style="font-size:small;color:rgb(68,68,68)">
<div><font
face="monospace,
monospace"><activation></font></div>
<div><font
face="monospace,
monospace">
<b><effectiveStatus>disabled</eff<wbr>ectiveStatus></b></font></div>
<div><font
face="monospace,
monospace">
<b><validTo>2017-01-15T00:00:00.0<wbr>00-03:00</validTo></b></font></div>
<div><font
face="monospace,
monospace">
<b><validityStatus>after</validit<wbr>yStatus></b></font></div>
<div><font
face="monospace,
monospace">
<disableTimestamp>2017-01-22T0<wbr>8:24:48.970-03:00</disableTime<wbr>stamp></font></div>
<div><font
face="monospace,
monospace">
<enableTimestamp>2017-01-22T08<wbr>:24:31.529-03:00</enableTimest<wbr>amp></font></div>
<div><font
face="monospace,
monospace">
<validityChangeTimestamp>2017-<wbr>01-22T08:24:48.970-03:00</vali<wbr>dityChangeTimestamp></font></div>
<div><font
face="monospace,
monospace">
</activation></font></div>
</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)"><br>
</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">User
not being
disabled
(changed from
UserTemplate):</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)"><br>
</div>
<div>
<div
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609m_-8017328280684359661gmail-m_9176653237689097091m_3499942527170424721m_6110592050426890084gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr"><font
face="monospace, monospace"><activation></font></div>
<div dir="ltr"><font
face="monospace, monospace"> <b>
<effectiveStatus>enabled</effe<wbr>ctiveStatus></b></font></div>
<div dir="ltr"><font
face="monospace, monospace"><b>
<validTo>2017-01-15T00:00:00.0<wbr>00-03:00</validTo></b></font></div>
<div dir="ltr"><font
face="monospace, monospace"><b>
<validityStatus>in</validitySt<wbr>atus></b></font></div>
<div dir="ltr"><font
face="monospace, monospace"> <disableTimestamp>2017-01-22T0<wbr>8:13:40.530-03:00</disableTime<wbr>stamp></font></div>
<div dir="ltr"><font
face="monospace, monospace"> <enableTimestamp>2017-01-22T08<wbr>:13:58.962-03:00</enableTimest<wbr>amp></font></div>
<div dir="ltr"><font
face="monospace, monospace"> <validityChangeTimestamp>2017-<wbr>01-22T08:13:58.962-03:00</vali<wbr>dityChangeTimestamp></font></div>
<div dir="ltr"><font
face="monospace, monospace"> </activation></font></div>
<div dir="ltr"
style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div dir="ltr"
style="font-family:arial,helvetica,sans-serif">
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Should
I set the
validityStatus
on the
UserTemplate?</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)"><br>
</div>
<div
style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Regards,</div>
<br>
</div>
<br>
<font
style="font-family:arial,helvetica,sans-serif"
color="#444444">Ing Nicolás Rossi</font><br>
<font
style="font-family:arial,helvetica,sans-serif"
color="#999999">Identicum S.A.</font><br>
<font
style="font-family:arial,helvetica,sans-serif"
color="#999999">Jorge Newbery 3226</font><br>
<font
style="font-family:arial,helvetica,sans-serif"
color="#999999">Tel: <a moz-do-not-send="true"
href="tel:+54%2011%204552-3050"
value="+541145523050" target="_blank">+54 (11) 4552-3050</a></font><br>
<font
style="font-family:arial,helvetica,sans-serif"
color="#999999"><a moz-do-not-send="true"
href="http://www.identicum.com"
target="_blank">www.identicum.com</a></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
midPoint mailing
list<br>
<a
moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a></a><br>
<a
moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"
rel="noreferrer"
target="_blank"><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mail">http://lists.evolveum.com/mail</a><wbr>man/listinfo/midpoint</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a
moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a></a><br>
<a
moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"
rel="noreferrer"
target="_blank"><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mail">http://lists.evolveum.com/mail</a><wbr>man/listinfo/midpoint</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset
class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" class="m_8824597261406383534m_-6365584593450959818m_8201249596803577609moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</pre>
</blockquote>
</div></div></div>
______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</blockquote></div>
</div></div></div>
______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</blockquote></div>
</div></div></div>
______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</blockquote></div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
</body></html>