<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Rod,</p>
<p>the ninja verify command was actually added to ease the upgrade
process and probably it's there since 3.9 or so. So we believe it
will be helpful for all your future upgrades.</p>
<p>Best regards,</p>
<p>Ivan<br>
</p>
<div class="moz-cite-prefix">On 25. 2. 2020 15:16, Rod Holman wrote:<br>
</div>
<blockquote type="cite"
cite="mid:MN2PR20MB2239B8DCDB53AF4A2376A451A5ED0@MN2PR20MB2239.namprd20.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="color:#1F497D">Thank you
Ivan. All is good now. We’ll be more aware of the
depreciated items as new releases roll out.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">--Rod<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> 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>Ivan Noris<br>
<b>Sent:</b> Monday, February 24, 2020 10:59 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a><br>
<b>Subject:</b> Re: [midPoint] defaultUserTemplateRef<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hi Rod,<span style="font-size:12.0pt"><o:p></o:p></span></p>
<p>yes it has been removed (after it was deprecated) and you can
replace it with a similar construction:<o:p></o:p></p>
<p> <defaultObjectPolicyConfiguration><br>
<objectTemplateRef
oid="10000000-9999-9999-0000-a000fe000001"
type="c:ObjectTemplateType"><br>
<!-- ExAmPLE User Template --><br>
</objectTemplateRef><br>
<type>c:UserType</type><br>
</defaultObjectPolicyConfiguration><o:p></o:p></p>
<p>You should have seen a warning when importing / saving object
with defaultUserTemplateRef, I remember to have seen similar
problem (I don't remember if there was a JIRA issue created
for it, sorry). But the Release 4.0 page contains the
following:<o:p></o:p></p>
<p>"Other removed items are automatically detected by midPoint
parsing code and such elements should be automatically removed
from the data.<span style="color:#6560D2"> There will be a
warning in the log file in case that such an element was
removed during parsing. Please note that it takes an update
of the object to store the data value without the removed
elements.</span> MidPoint does
<strong><span
style="font-family:"Calibri",sans-serif">not</span></strong>
do it proactively."<o:p></o:p></p>
<p>(<a
href="https://wiki.evolveum.com/display/midPoint/Release+4.0#Release4.0-Behaviorchangessince3.9"
moz-do-not-send="true">https://wiki.evolveum.com/display/midPoint/Release+4.0#Release4.0-Behaviorchangessince3.9</a>)<o:p></o:p></p>
<p>Also, running "ninja.sh verify" should display a warning if
you have deprecated syntax in your repository objects (you
should run this command before upgrade as the schema elements
are always deprecated at least one version before the element
is removed).<o:p></o:p></p>
<p>Best regards,<o:p></o:p></p>
<p>Ivan<o:p></o:p></p>
<div>
<p class="MsoNormal">On 24. 2. 2020 16:46, Rod Holman wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Since we upgraded to 4.0 (now 4.0.2) we
have not been able to save the defaultUserTemplateRef in the
System Configuration Object as explained in the
documentation under Object Template/Global User Template.
When we place it after the logging element and click save it
appears to save OK, but doesn’t do anything. We’re able to
save other things, but not that. We are trying to save the
following:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><defaultUserTemplateRef xmlns:tns="<a
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
moz-do-not-send="true">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"
oid="f392e8a6-7b2a-4937-84ca-eca3bc9ee176"
relation="org:default" type="tns:ObjectTemplateType"><o:p></o:p></p>
<p class="MsoNormal"> <!-- Create Unique Name --><o:p></o:p></p>
<p class="MsoNormal"> </defaultUserTemplateRef><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Has been removed and replaced with
something else?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">-Rod <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>midPoint mailing list<o:p></o:p></pre>
<pre><a href="mailto:midPoint@lists.evolveum.com" moz-do-not-send="true">midPoint@lists.evolveum.com</a><o:p></o:p></pre>
<pre><a href="http://lists.evolveum.com/mailman/listinfo/midpoint" moz-do-not-send="true">http://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Ivan Noris<o:p></o:p></pre>
<pre>Senior Identity Engineer<o:p></o:p></pre>
<pre>evolveum.com<o:p></o:p></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></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="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
</body>
</html>