From f42cdb8339ef605eb5d5b430471be8b9a564d4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Theodor=20Angerg=C3=A5rd?= Date: Sun, 23 Jun 2024 01:53:13 +0200 Subject: [PATCH] Update --- .../it/chalmers/gamma/adapter/primary/web/ThymeleafAdvice.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/it/chalmers/gamma/adapter/primary/web/ThymeleafAdvice.java b/app/src/main/java/it/chalmers/gamma/adapter/primary/web/ThymeleafAdvice.java index 71ac037b1..5fcd27938 100644 --- a/app/src/main/java/it/chalmers/gamma/adapter/primary/web/ThymeleafAdvice.java +++ b/app/src/main/java/it/chalmers/gamma/adapter/primary/web/ThymeleafAdvice.java @@ -57,6 +57,8 @@ public void handleAccessDeniedException(HttpServletResponse response) throws IOE response.sendRedirect("/"); } + /* + TODO: This interferes with security filter chains other that web. @ExceptionHandler(RuntimeException.class) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public ModelAndView handleRuntimeException(RuntimeException ex, HttpServletResponse response) { @@ -65,4 +67,5 @@ public ModelAndView handleRuntimeException(RuntimeException ex, HttpServletRespo return new ModelAndView("pages/error"); } + */ }