<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Sébastien,</p>
<p>it is really interesting. The getDefaultHostname() method is
really there in 4.0.x, but it is marked as private:</p>
<p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/6c7f51b64114c3d082688349f934abc0bf1a53e5/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java#L1487-L1506"
class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/6c7f51b64114c3d082688349f934abc0bf1a53e5/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java#L1487-L1506</a></p>
<p>So (I assume) one of us developers removed it without any
hesitation during his work. That's quite OK, as it is not a part
of the public API. <br>
</p>
<p>(To be honest, some of midPoint APIs are quite volatile, although
we try to provide at least basic backwards compatibility.)</p>
<p>It looks like Groovy allows the programmer to call even private
methods.</p>
<p>Anyway, there is a similar method you can use - although it's
again private ;)</p>
<p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/36a1ed5d00de64149554163cc847ac6684f680f3/infra/schema/src/main/java/com/evolveum/midpoint/schema/util/SystemConfigurationTypeUtil.java#L49-L55"
class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/36a1ed5d00de64149554163cc847ac6684f680f3/infra/schema/src/main/java/com/evolveum/midpoint/schema/util/SystemConfigurationTypeUtil.java#L49-L55</a></p>
<p>Or you can implement that functionality directly in your script
code.</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">--
Pavol Mederly
Software developer
evolveum.com</pre>
<div class="moz-cite-prefix">On 20/01/2022 16:41, Sébastien MARBRIER
via midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DBBPR01MB76441F2C44158A985C972645B65A9@DBBPR01MB7644.eurprd01.prod.exchangelabs.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}@font-face
{font-family:Roboto;
panose-1:2 0 0 0 0 0 0 0 0 0;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}span.apple-converted-space
{mso-style-name:apple-converted-space;}span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">Good morning Josua,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">I understand this workaround but I am not sure
it would work because there several possible hostname and we
have to be sure to use the good one.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">I keep this one as a last resort.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">Thanks you very much for the suggestion.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<table class="MsoNormalTable" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td style="width:141.0pt;border:none;border-right:solid
#FF1738 2.25pt;padding:0cm 7.5pt 0cm 0cm" width="188">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:right"
align="right">
<a href="https://www.positivethinking.tech/"
moz-do-not-send="true"><span
style="text-decoration:none"><img
style="width:1.7708in;height:.8229in"
id="_x0000_i1033"
src="cid:part1.2WwZeWWR.2RgMXpCl@evolveum.com"
alt="logo" class="" width="170" height="79"
border="0"></span></a><span
style="color:#1F497D"><o:p></o:p></span></p>
</td>
<td style="width:7.5pt;padding:0cm 0cm 0cm 0cm" width="10">
<p class="MsoNormal"><span style="color:#1F497D"> <o:p></o:p></span></p>
</td>
<td style="width:372.75pt;padding:0cm 0cm 0cm 0cm"
width="497" valign="top">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#FF0044"
lang="EN-US">Sébastien Marbrier</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#FF0044"
lang="EN-US">
</span><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"> | Senior IT Consultant<br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"><a
href="mailto:smarbrier@positivethinking.tech"
moz-do-not-send="true"><span style="color:#FF0044"
lang="EN-US">smarbrier@positivethinking.tech</span></a></span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777">
</span><span
style="font-size:5.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"><br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"><br>
Tel. </span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"><a
href="tel:+41%2021%20601%2081%2000"
moz-do-not-send="true"><span
style="color:#777777;text-decoration:none">+41
21 601 81 00</span></a>
</span><span
style="font-size:5.0pt;font-family:"Tahoma",sans-serif;color:#777777"><br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"><o:p></o:p></span></p>
<table class="MsoNormalTable" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1032"
src="cid:part2.jkeE5Xgj.6910rwL4@evolveum.com"
alt="Teams chat" class="" width="20"
height="20" border="0"></span></a><span
style="color:#1F497D"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="color:#1F497D"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;text-decoration:none"> </span></a>
<o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="color:#1F497D"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US">Chat with me on Teams</span></a></span><span
style="color:#1F497D">
<span lang="EN-US"><o:p></o:p></span></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"><br>
</span><span style="color:#1F497D" lang="EN-US"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border:none;border-right:solid #FF1738
2.25pt;padding:0cm 7.5pt 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:right"
align="right">
<span style="color:#1F497D" lang="EN-US"><br>
</span><a
href="https://www.linkedin.com/company/the-positive-thinking-company/"
target="_blank" moz-do-not-send="true"><span
style="text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1031"
src="cid:part3.9inNSlOH.bogGYuJe@evolveum.com"
alt="LinkedIn" class="" width="20" height="20"
border="0"></span></a><span
style="color:#1F497D">
</span><a
href="https://www.instagram.com/positivethinkingcompany/"
target="_blank" moz-do-not-send="true"><span
style="text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1030"
src="cid:part4.D27HbEM0.lJixs2vg@evolveum.com"
alt="Instagram" class="" width="20" height="20"
border="0"></span></a><span
style="color:#1F497D">
</span><a href="https://twitter.com/PTC_Tech"
target="_blank" moz-do-not-send="true"><span
style="text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1029"
src="cid:part5.Jqzd1pyc.G6KJPxIJ@evolveum.com"
alt="Vimeo" class="" width="20" height="20"
border="0"></span></a><span
style="color:#1F497D">
</span><a
href="https://youtube.com/channel/UCfaImWa6r0IoZoUYLhbiF7w"
target="_blank" moz-do-not-send="true"><span
style="text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1028"
src="cid:part6.mb9NTJIF.0OSg410B@evolveum.com"
alt="Vimeo" class="" width="20" height="20"
border="0"></span></a><span
style="color:#1F497D"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="bottom"><br>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="bottom">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777">Avenue
de cour, 135 – 1007 Lausanne<br>
<a href="https://www.positivethinking.tech/"
moz-do-not-send="true"><span style="color:#FF0044">www.positivethinking.tech</span></a>
<br>
</span><span
style="font-size:3.5pt;font-family:"Tahoma",sans-serif;color:#777777"> </span><span
style="color:#1F497D"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div class="MsoNormal" style="text-align:center" align="center"><span
style="color:#1F497D">
<hr width="100%" size="2" align="center">
</span></div>
<p class="MsoNormal"><b><span
style="font-size:8.0pt;font-family:Roboto;color:#FF0044"
lang="EN-US">Help save paper, do you really need to print
this email?</span></b><span
style="font-size:8.0pt;font-family:Roboto;color:#FF0044"
lang="EN-US">
</span><span style="color:#1F497D" lang="EN-US"><br>
</span><i><span
style="font-size:8.0pt;font-family:Roboto;color:#777777"
lang="EN-US">The content of this email and any attachments
are confidential and are intended solely for the person
and/or company to whom they are addressed. The information
may also be legally privileged. No employee or agent is
authorized to conclude any binding agreement on behalf of
Positive Thinking Company with another party by email
without express written confirmation. If you have received
this email in error, any use, reproduction or
dissemination of this transmission is strictly prohibited.
If you are not the intended recipient, please immediately
notify the sender by return E-mail and delete this
message, its attachments and all copies from your system.
Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept
liability for any errors or omissions.
</span></i><i><span
style="font-size:8.0pt;font-family:Roboto;color:#777777">Thank
you for your cooperation.
<br>
</span></i><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> midPoint
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a>
<b>On Behalf Of </b>Joshua Williams via midPoint<br>
<b>Sent:</b> jeudi, 20 janvier 2022 16:14<br>
<b>To:</b> midPoint General Discussion
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
<b>Cc:</b> Joshua Williams
<a class="moz-txt-link-rfc2396E" href="mailto:jwilliams+list@globalnaz.org"><jwilliams+list@globalnaz.org></a><br>
<b>Subject:</b> Re: [midPoint] [Midpoint 4.4]midpoint,
.getDefaultHostname() does not exist.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Good morning Sebastian,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I routed around that problem by typing
out the URL I wanted<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">bodyMessage += “blah blah” + “<a
href="https://my.midpoint.tld" moz-do-not-send="true"
class="moz-txt-link-freetext">https://my.midpoint.tld</a>” <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">That is not the most elegant solution,
but it has worked for us.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Josh<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jan 20, 2022, at 8:00 AM,
Sébastien MARBRIER via midPoint <<a
href="mailto:midpoint@lists.evolveum.com"
moz-do-not-send="true" class="moz-txt-link-freetext">midpoint@lists.evolveum.com</a>>
wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Good
afternoon,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">I am currently updating a the email
notification in my SystemConfiguration to send
emails to the new users.</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">My configuration is very close to that
is described in<span class="apple-converted-space"> </span><a
href="https://docs.evolveum.com/midpoint/reference/misc/self-registration/"
moz-do-not-send="true"><span style="color:#954F72">https://docs.evolveum.com/midpoint/reference/misc/self-registration/</span></a></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">I ensured that the property
defaultHostname has been updated to the new
property publicHttpUrlPattern</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<subjectExpression><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<value></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">Texte</value</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</subjectExpression><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<bodyExpression><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<script xmlns:xsi="<a
href="http://www.w3.org/2001/XMLSchema-instance"
moz-do-not-send="true"><span style="color:#954F72">http://www.w3.org/2001/XMLSchema-instance</span></a>"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<code><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
import
com.evolveum.midpoint.schema.constants.SchemaConstants;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
import
com.evolveum.midpoint.notifications.api.events.ModelEvent;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <span
class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">import
com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationMessageType;</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> <span
class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">import
java.net.URLEncoder;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
import java.nio.charset.StandardCharsets;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <span
class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">modelEvent = (ModelEvent) event;</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> newUser =
modelEvent.getFocusContext().getObjectNew();</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> [snip]</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> bodyMessage
+= "blah blah " + midpoint<span
style="background:yellow">.getDefaultHostname()</span><span
class="apple-converted-space"> </span> ;</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> return
bodyMessage;</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> <span
class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"></code><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</script><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</bodyExpression><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<transport>mail</transport><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<transport><a class="moz-txt-link-freetext" href="file:xxxxx">file:xxxxx</a></transport><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <span
class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"></simpleUserNotifier></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">In the <mail> section I force the
redirection to a file.</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">However no email is sent because for
each account activation there is an exception
message:</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">ERROR
(com.evolveum.midpoint.notifications.api.NotificationManager):
Event couldn't be processed; event =
ModelEventImpl{id=1642688194449-0-1,requester=SimpleObjectRef{oid='00000000-0000-0000-0000-000000000002',
objectType=user:00000000-0000-0000-0000-000000000002(administrator)},requestee=SimpleObjectRef{oid='8ce2d1eb-d694-4ca1-b57d-026df2404457',
objectType=user:8ce2d1eb-d694-4ca1-b57d-026df2404457(name.name1)}}.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">com.evolveum.midpoint.util.exception.SystemException:
com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
Groovy Evaluation Failed: No signature of method:<span
style="background:yellow">com.evolveum.midpoint.model.impl.expr.MidpointFunctionsImpl.getDefaultHostname()</span><span
class="apple-converted-space"> </span>is
applicable for argument types: () values: []</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">Here I am lost because the
getDefaultHostname used to be in the
SystemConfigurationType class in 3.5 but was removed
as soon as 4.0.1:</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"><a
href="https://evolveum.com/downloads/midpoint/3.5/midpoint-api-3.5-javadoc/com/evolveum/midpoint/xml/ns/_public/common/common_3/SystemConfigurationType.html"
moz-do-not-send="true"><span style="color:#954F72">https://evolveum.com/downloads/midpoint/3.5/midpoint-api-3.5-javadoc/com/evolveum/midpoint/xml/ns/_public/common/common_3/SystemConfigurationType.html</span></a></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"><a
href="https://evolveum.com/downloads/midpoint/4.0.1/midpoint-api-4.0.1-javadoc/com/evolveum/midpoint/xml/ns/_public/common/common_3/SystemConfigurationType.html"
moz-do-not-send="true"><span style="color:#954F72">https://evolveum.com/downloads/midpoint/4.0.1/midpoint-api-4.0.1-javadoc/com/evolveum/midpoint/xml/ns/_public/common/common_3/SystemConfigurationType.html</span></a></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">Regarding the MidpointFunctionsImpl
class. I am not able to find any reference to a
getDefaultHostName method : <a
href="https://evolveum.com/downloads/midpoint/4.0.2/midpoint-4.0.2-javadoc/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.html"
moz-do-not-send="true"><span style="color:#954F72">https://evolveum.com/downloads/midpoint/4.0.2/midpoint-4.0.2-javadoc/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.html</span></a></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">As stated above this functionality was
working in midpoint 4.0.1, could you please explain
me where to find the new method or if there is
something broken in 4.4 ?</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">Thank you very much for your precious
help.</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">Best regards,</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<table class="MsoNormalTable" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td
style="width:141.0pt;border:none;border-right:solid
#FF1738 2.25pt;padding:0cm 7.5pt 0cm 0cm"
width="474">
<p class="MsoNormal" style="text-align:right"
align="right"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://www.positivethinking.tech/"
moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;text-decoration:none"><image001.png></span></a><o:p></o:p></span></p>
</td>
<td style="width:7.5pt;padding:0cm 0cm 0cm 0cm"
width="5">
<div>
<p class="MsoNormal"> <span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</td>
<td style="width:372.75pt;padding:0cm 0cm 0cm 0cm"
width="229" valign="top">
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#FF0044"
lang="EN-US">Sébastien Marbrier</span></b><span
class="apple-converted-space"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#FF0044"
lang="EN-US"> </span></span><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"> | Senior IT Consultant<br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"><a
href="mailto:smarbrier@positivethinking.tech" moz-do-not-send="true"><span
style="color:#FF0044" lang="EN-US">smarbrier@positivethinking.tech</span></a><span
class="apple-converted-space"> </span></span><span
style="font-size:5.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"><br>
<span class="apple-converted-space"> </span></span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"><br>
Tel. </span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"><a
href="tel:+41%2021%20601%2081%2000"
moz-do-not-send="true"><span
style="color:#777777;text-decoration:none">+41
21 601 81 00</span></a><span
class="apple-converted-space"> </span></span><span
style="font-size:5.0pt;font-family:"Tahoma",sans-serif;color:#777777"><br>
<span class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<table class="MsoNormalTable" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;text-decoration:none"><image002.png></span></a><o:p></o:p></span></p>
</div>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;text-decoration:none"> </span></a><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US">Chat with me on Teams</span></a><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span
style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US"><br>
<span class="apple-converted-space"> </span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</td>
</tr>
<tr>
<td style="border:none;border-right:solid #FF1738
2.25pt;padding:0cm 7.5pt 0cm 0cm">
<p class="MsoNormal" style="text-align:right"
align="right"><span lang="EN-US"><br>
</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://www.linkedin.com/company/the-positive-thinking-company/"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;text-decoration:none"><image003.png></span></a></span> <span
class="apple-converted-space"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://www.instagram.com/positivethinkingcompany/"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;text-decoration:none"><image004.png></span></a></span> <span
class="apple-converted-space"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://twitter.com/PTC_Tech"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;text-decoration:none"><image005.png></span></a></span> <span
class="apple-converted-space"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://youtube.com/channel/UCfaImWa6r0IoZoUYLhbiF7w"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;text-decoration:none"><image006.png></span></a><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="bottom"><br>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="bottom">
<div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777">Avenue
de cour, 135 – 1007 Lausanne<br>
<a href="https://www.positivethinking.tech/"
moz-do-not-send="true"><span
style="color:#FF0044">www.positivethinking.tech</span></a><span
class="apple-converted-space"> </span><br>
</span><span
style="font-size:3.5pt;font-family:"Tahoma",sans-serif;color:#777777"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<div class="MsoNormal" style="text-align:center"
align="center">
<hr width="100%" size="2" align="center">
</div>
<div>
<p class="MsoNormal"><b><span
style="font-size:8.0pt;font-family:Roboto;color:#FF0044"
lang="EN-US">Help save paper, do you really need
to print this email?</span></b><span
class="apple-converted-space"><span
style="font-size:8.0pt;font-family:Roboto;color:#FF0044"
lang="EN-US"> </span></span><span lang="EN-US"><br>
</span><i><span
style="font-size:8.0pt;font-family:Roboto;color:#777777"
lang="EN-US">The content of this email and any
attachments are confidential and are intended
solely for the person and/or company to whom they
are addressed. The information may also be legally
privileged. No employee or agent is authorized to
conclude any binding agreement on behalf of
Positive Thinking Company with another party by
email without express written confirmation. If you
have received this email in error, any use,
reproduction or dissemination of this transmission
is strictly prohibited. If you are not the
intended recipient, please immediately notify the
sender by return E-mail and delete this message,
its attachments and all copies from your system.
Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender
does not accept liability for any errors or
omissions.<span class="apple-converted-space"> </span></span></i><i><span
style="font-size:8.0pt;font-family:Roboto;color:#777777">Thank you for
your cooperation.<span
class="apple-converted-space"> </span><br>
<span class="apple-converted-space"> </span></span></i><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> </span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" style="text-align:center"
align="center">
<hr width="100%" size="2" align="center">
</div>
<p class="MsoNormal"><em><span
style="font-size:6.0pt;font-family:Roboto;color:#777777">Positive
Thinking Company puts security at a high priority in
its conduct of business. Therefore, we have put our
best efforts into ensuring that this email and its
attached documents are error and virus-free.
Nonetheless, full security of emails/documents
cannot be ensured. Therefore, the recipient is
responsible for checking the email/documents for
threats with its own security measures, prior to
opening it. Positive Thinking Company does not
accept liability for any damage inflicted by using
the content of this email/documents. If you are not
the intended recipient, please notify the sender and
delete this email/document.</span></em><o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif">_______________________________________________<br>
midPoint mailing list<br>
</span><a href="mailto:midPoint@lists.evolveum.com"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72">midPoint@lists.evolveum.com</span></a><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><br>
</span><a
href="https://lists.evolveum.com/mailman/listinfo/midpoint"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72">https://lists.evolveum.com/mailman/listinfo/midpoint</span></a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr>
<span style="font-size:8px"><em><span
style="font-family:Roboto,Arial"><span style="color:#777777">Positive
Thinking Company puts security at a high priority in its
conduct of business. Therefore, we have put our best
efforts into ensuring that this email and its attached
documents are error and virus-free. Nonetheless, full
security of emails/documents cannot be ensured. Therefore,
the recipient is responsible for checking the
email/documents for threats with its own security
measures, prior to opening it. Positive Thinking Company
does not accept liability for any damage inflicted by
using the content of this email/documents. If you are not
the intended recipient, please notify the sender and
delete this email/document.</span></span></em></span>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>