[java-identity-provider] branch master updated: JSE-36 - Support override of status code in error view

Scott Cantor cantor.2 at osu.edu
Mon Jun 8 23:04:11 UTC 2020


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=b885e17baf5898b8d845561a7201ddea0b0e0313

The following commit(s) were added to refs/heads/master by this push:
       new  b885e17ba JSE-36 - Support override of status code in error view
b885e17ba is described below

commit b885e17baf5898b8d845561a7201ddea0b0e0313
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jun 8 19:04:08 2020 -0400

    JSE-36 - Support override of status code in error view
    
    https://issues.shibboleth.net/jira/browse/JSE-36
    
    Set status to 500 by default in error view.
---
 idp-conf/src/main/resources/views/error.vm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/idp-conf/src/main/resources/views/error.vm b/idp-conf/src/main/resources/views/error.vm
index dcb8e2b06..a44bd6fea 100644
--- a/idp-conf/src/main/resources/views/error.vm
+++ b/idp-conf/src/main/resources/views/error.vm
@@ -34,10 +34,12 @@
     #set ($eventKey = $springMacroRequestContext.getMessage("$eventId", "error"))
     #set ($titleSuffix = $springMacroRequestContext.getMessage("${eventKey}.title", "$defaultTitleSuffix"))
     #set ($message = $springMacroRequestContext.getMessage("${eventKey}.message", "$defaultTitleSuffix: $eventId"))
+    $response.setStatus(500)
 #else
 	## This is a catch-all that theoretically shouldn't happen?
     #set ($titleSuffix = $defaultTitleSuffix)
     #set ($message = $springMacroRequestContext.getMessage("idp.message", "An unidentified error occurred."))
+    $response.setStatus(500)
 #end
 ##
 <!DOCTYPE html>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list