<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
Try to force the value type using the standard xsi:type mechanism.
Like this:<br>
<br>
<cap:enableValue
xsi:type="xsd:boolean">false</cap:enableValue><br>
<br>
However, this is quite an old code that originated some 4-5 years
ago and as far as I know it was never reviewed. So there is that
does not work then you are most likely hitting a bug. In that case
please report the issue in Jira.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
<div class="moz-cite-prefix">On 06/01/2016 11:29 PM, Gustavo J
Gallardo wrote:<br>
</div>
<blockquote
cite="mid:CAA68kP_NmHcEbV9w-GoP9Q+NqMGVhC7M-HsZXQYAT5sDEo2jSQ@mail.gmail.com"
type="cite">
<div dir="ltr">We're working with the GoogleApps connector, which
does not support activation, so we set up a configured
capability to set the boolean 'suspended' attribute.
<div>We can read and interpret the value correctly, however when
writing the attribute from <capabilities>, it is sending
a String instead of a boolean.</div>
<div>If I map the account attribute to a user attribute, we can
write it correctly.</div>
<div><br>
</div>
<div><span class="" style="white-space:pre"> </span><span style="white-space:pre"><capabilities></span><br>
</div>
<div>
<div><span class="" style="white-space:pre">...</span></div>
<div><span class="" style="white-space:pre"> </span><configured></div>
<div><span class="" style="white-space:pre"> </span><cap:activation><br>
</div>
<div><span class="" style="white-space:pre"> </span><cap:status></div>
<div><span class="" style="white-space:pre"> </span><cap:attribute>ri:suspended</cap:attribute></div>
<div><span class="" style="white-space:pre"> </span><cap:enableValue>false</cap:enableValue></div>
<div><span class="" style="white-space:pre"> </span><cap:disableValue>true</cap:disableValue></div>
<div><span class="" style="white-space:pre"> </span></cap:status></div>
<div><span class="" style="white-space:pre"> </span></cap:activation></div>
<div><span class="" style="white-space:pre"> </span></configured></div>
<div><span class="" style="white-space:pre"> </span></capabilities></div>
</div>
<div><br>
</div>
<div>Is there any way inside the
.../capabilities/configured/cap:activation/cap:status/cap:enableValue/
to indicate it has to be treated as a boolean?</div>
<div>We are working with 3.4-SNAPSHOT.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>GJG </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
</body>
</html>