From 5c5be318d4549e7fa70dccd98b42936afe7212ed Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Fri, 21 Jun 2019 13:49:38 +0200
Subject: [PATCH] no-jira: flat red screen pseudo xml informations

---
 .../olat/core/gui/exception/ExceptionWindowController.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/olat/core/gui/exception/ExceptionWindowController.java b/src/main/java/org/olat/core/gui/exception/ExceptionWindowController.java
index 405f35ccfb0..7c77fdb74a1 100644
--- a/src/main/java/org/olat/core/gui/exception/ExceptionWindowController.java
+++ b/src/main/java/org/olat/core/gui/exception/ExceptionWindowController.java
@@ -98,7 +98,7 @@ public class ExceptionWindowController extends DefaultChiefController {
 		msg = new VelocityContainer("olatmain", VELOCITY_ROOT + "/exception_page.html", trans, this);
 
 		CSPModule securityModule = CoreSpringFactory.getImpl(CSPModule.class);
-		msg.contextPut("enforceTopFrame", new Boolean(securityModule.isForceTopFrame()));
+		msg.contextPut("enforceTopFrame", Boolean.valueOf(securityModule.isForceTopFrame()));
 		
 		// Disallow wrapping of divs around the panel and the main velocity page
 		// (since it contains the "<html><head... intro of the html page,
@@ -154,8 +154,6 @@ public class ExceptionWindowController extends DefaultChiefController {
 				Controller c = target.getLatestDispatchedController();
 				if (c != null) {
 					// can be null if the error occured in the component itself
-					// componentListenerInfo += c.toString();
-					//WindowControl control = c.getWindowControl();
 					// sorry, getting windowcontrol on a controller which does not have one (all should have one, legacy) throws an exception
 					try {
 						
@@ -180,7 +178,8 @@ public class ExceptionWindowController extends DefaultChiefController {
 		
 		Logger o3log = Tracing.createLoggerFor(o3e.getThrowingClazz());
 		String refNum = ureq.getUuid();
-		o3log.error("**RedScreen** "+o3e.getLogMsg() + " ::_::" + componentListenerInfo + " ::_::", o3e);
+		String componentListenerInfoFlat = componentListenerInfo.replace('\n', ' ').replace('\t', ' ');
+		o3log.error("**RedScreen** "+ o3e.getLogMsg() + " ::_::" + componentListenerInfoFlat + " ::_::", o3e);
 		// only if debug
 		if (Settings.isDebuging()) {
 			msg.contextPut("debug", Boolean.TRUE);
-- 
GitLab