[java-idp-testbed COMMIT] /trunk/src/main/webapp/WEB-INF/idp/jsp/error.jsp

noreply at shibboleth.net noreply at shibboleth.net
Mon Apr 28 13:20:37 EDT 2014


Author: scantor
Date: Mon Apr 28 13:20:37 2014
New Revision: 208

URL: http://svn.shibboleth.net/view/java-idp-testbed?rev=208&view=rev
Log:
Fix to error handling, untested.

Modified:
    trunk/src/main/webapp/WEB-INF/idp/jsp/error.jsp

Modified: trunk/src/main/webapp/WEB-INF/idp/jsp/error.jsp
URL: http://svn.shibboleth.net/view/java-idp-testbed/trunk/src/main/webapp/WEB-INF/idp/jsp/error.jsp?rev=208&r1=207&r2=208&view=diff
==============================================================================
--- trunk/src/main/webapp/WEB-INF/idp/jsp/error.jsp (original)
+++ trunk/src/main/webapp/WEB-INF/idp/jsp/error.jsp Mon Apr 28 13:20:37 2014
@@ -1,11 +1,9 @@
 <%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 
-<%@ page import="org.opensaml.profile.context.ErrorEventContext" %>
 <%@ page import="net.shibboleth.utilities.java.support.codec.HTMLEncoder" %>
 
 <%
 HTMLEncoder encoder = (HTMLEncoder) request.getAttribute("encoder");
-ErrorEventContext errorEventContext = (ErrorEventContext) request.getAttribute("errorEventContext");
 %>
 
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
@@ -13,8 +11,8 @@
     
     	<h2>ERROR</h2>
         
-<% if ( errorEventContext != null && errorEventContext.getEvent() != null) { %>
-		<p>ERROR: <%= encoder.encodeForHTML(errorEventContext.getEvent().toString()) %></p>
+<% if ( request.getAttribute("flowRequestContext").getCurrentEvent() != null) { %>
+		<p>ERROR: <%= encoder.encodeForHTML(request.getAttribute("flowRequestContext").getCurrentEvent().getId()) %></p>
 <% } %>
         
     </body>



More information about the commits mailing list