<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
I've managed to solve the issue, by flipping the order in which Exceptions & ClassifiedErrors are processed in the `login-error.vm` Velocity template.</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2 ContentPasted3 ContentPasted4 ContentPasted5 ContentPasted6 ContentPasted7 ContentPasted8">
By default ClassifiedErrors are processed first, and only if none of those exists the Exceptions are read. Since our custom error messages are transported using Exceptions, we first process those, and only if none of them exists look onto the ClassifiedErrors,
of which we ignore not only the $eventId ignored by default = "ReselectFlow" but also "NoCredentials" which is always existent in 4.3.1 when the login page is loaded first before the user tried entering any credentials.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Käfer Thomas <thomas.kaefer@fh-campuswien.ac.at><br>
<b>Gesendet:</b> Dienstag, 18. April 2023 12:35<br>
<b>An:</b> Cantor, Scott <cantor.2@osu.edu>; Shib Users <users@shibboleth.net><br>
<b>Betreff:</b> AW: IDP 4.3.1 login.vm view - error messages?</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hey there Scott,</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
thanks for the explanations!</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Can you please point me to resources that explain how I can</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
> <font size="2"><span class="x_ContentPasted0" style="font-size:11pt">handle that event specially in the view</span></font></div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<font size="2"><span class="x_ContentPasted0" style="font-size:11pt"><br>
</span></font></div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<font size="2"><span class="x_ContentPasted0" style="font-size:11pt">Thank you,</span></font></div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<font size="2"><span class="x_ContentPasted0" style="font-size:11pt">kind regards,</span></font></div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<font size="2"><span class="x_ContentPasted0" style="font-size:11pt">Thomas Käfer<br>
</span></font></div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Cantor, Scott <cantor.2@osu.edu><br>
<b>Gesendet:</b> Dienstag, 11. April 2023 16:53<br>
<b>An:</b> Käfer Thomas <thomas.kaefer@fh-campuswien.ac.at>; Shib Users <users@shibboleth.net><br>
<b>Betreff:</b> Re: IDP 4.3.1 login.vm view - error messages?</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">> Do you have any hint's how I could get back the behaviour from 4.2.1 and<br>
> before where we only get an error message after a failed password login<br>
> attempt and that one is the custom one thrown from our JAAS code like: throw<br>
> new FailedLoginException(ourErrorMessage)?<br>
<br>
No, that would take member support sorts of effort to dig into, I cannot do that for free.<br>
<br>
What I can say is that the point of the fix was that before when an event got signaled that didn't have a mapping to a classified error, it just got dropped on the floor, but now if nothing has been captured it stores off the signalled event ID as the classified
error. Your template is probably seeing that classified error event and reporting it, and that's what it is designed to do out of the box. If you don't want it to do that, you need to handle that event specially in the view.<br>
<br>
What it actually displays hasn't changed, that depends on the event string being tied to a message key in the message file(s).<br>
<br>
-- Scott<br>
<br>
<br>
</div>
</span></font></div>
</div>
<div style="font-size:10pt; font-family: 'Verdana',sans-serif;">
<p>Informationen zum Datenschutz: www.fh-campuswien.ac.at/datenschutzerklaerung </p>
</div>
</body>
</html>