From 2e88dcfae996233213d7fe67ac079c054c856a69 Mon Sep 17 00:00:00 2001 From: Brian Demers Date: Tue, 21 Jun 2022 18:40:09 -0400 Subject: [PATCH] Update Spring, jetty, slf4j, and hazelcast dependencies --- pom.xml | 13 +++++++------ .../shiro/samples/RestrictedErrorController.java | 8 ++------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 54b5a8ef8a..aef58451e5 100644 --- a/pom.xml +++ b/pom.xml @@ -91,20 +91,20 @@ modules' OSGi metadata: --> 2.6.11 - 3.12.6 + 3.12.12 2.5.0 1.3.2 1.8 - 9.4.27.v20200227 + 9.4.47.v20220610 1.2.2 2.3.2 - 1.7.26 - 1.2.10 + 1.7.36 + 1.2.11 2.17.1 - 5.2.8.RELEASE - 2.3.2.RELEASE + 5.3.20 + 2.7.0 4.2.2 2.0.1 2.39.0 @@ -1478,6 +1478,7 @@ dependency-check-maven false + false ${root.dir}/src/owasp-suppression.xml diff --git a/samples/spring-boot-web/src/main/java/org/apache/shiro/samples/RestrictedErrorController.java b/samples/spring-boot-web/src/main/java/org/apache/shiro/samples/RestrictedErrorController.java index 53603e048c..2da2373a97 100644 --- a/samples/spring-boot-web/src/main/java/org/apache/shiro/samples/RestrictedErrorController.java +++ b/samples/spring-boot-web/src/main/java/org/apache/shiro/samples/RestrictedErrorController.java @@ -19,6 +19,7 @@ package org.apache.shiro.samples; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.web.error.ErrorAttributeOptions; import org.springframework.boot.web.servlet.error.ErrorAttributes; import org.springframework.boot.web.servlet.error.ErrorController; import org.springframework.stereotype.Controller; @@ -38,14 +39,9 @@ public class RestrictedErrorController implements ErrorController { @Autowired private ErrorAttributes errorAttributes; - @Override - public String getErrorPath() { - return ERROR_PATH; - } - @RequestMapping(ERROR_PATH) String error(HttpServletRequest request, Model model) { - Map errorMap = errorAttributes.getErrorAttributes(new ServletWebRequest(request), false); + Map errorMap = errorAttributes.getErrorAttributes(new ServletWebRequest(request), ErrorAttributeOptions.of(ErrorAttributeOptions.Include.MESSAGE)); model.addAttribute("errors", errorMap); return "error"; }