From e896d078c312e3ff54b96b9a30f2d87686371576 Mon Sep 17 00:00:00 2001 From: abirembaut Date: Thu, 16 Nov 2023 12:28:12 +0100 Subject: [PATCH] fix(error pages): remove hard-coded fr locale in error page template Covers [RUNTIME-1790](https://bonitasoft.atlassian.net/browse/RUNTIME-1790) --- bpm/bonita-web-server/src/main/webapp/WEB-INF/errors.html | 2 +- .../console/common/server/servlet/ErrorPageServletTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bpm/bonita-web-server/src/main/webapp/WEB-INF/errors.html b/bpm/bonita-web-server/src/main/webapp/WEB-INF/errors.html index 11e6c64d919..11eeca15004 100644 --- a/bpm/bonita-web-server/src/main/webapp/WEB-INF/errors.html +++ b/bpm/bonita-web-server/src/main/webapp/WEB-INF/errors.html @@ -23,7 +23,7 @@
- +
\ No newline at end of file diff --git a/bpm/bonita-web-server/src/test/java/org/bonitasoft/console/common/server/servlet/ErrorPageServletTest.java b/bpm/bonita-web-server/src/test/java/org/bonitasoft/console/common/server/servlet/ErrorPageServletTest.java index 3ac560a91bb..5eea993d27f 100644 --- a/bpm/bonita-web-server/src/test/java/org/bonitasoft/console/common/server/servlet/ErrorPageServletTest.java +++ b/bpm/bonita-web-server/src/test/java/org/bonitasoft/console/common/server/servlet/ErrorPageServletTest.java @@ -92,7 +92,7 @@ public void should_write_formatted_response() throws Exception { assertThat(stringWriter.toString()).contains("Error 404"); assertThat(stringWriter.toString()).contains( - "src=\"/bonita/portal/resource/app/appDirectoryBonita/error-404/content/?_l=fr&app=appDirectoryBonita\""); + "src=\"/bonita/portal/resource/app/appDirectoryBonita/error-404/content/?app=appDirectoryBonita\""); assertThat(stringWriter.toString()).contains("width=\"100%\""); } @@ -105,7 +105,7 @@ public void should_write_formatted_response_with_root_contextPath() throws Excep errorServlet.doGet(request, response); assertThat(stringWriter.toString()).contains( - "src=\"/portal/resource/app/appDirectoryBonita/error-500/content/?_l=fr&app=appDirectoryBonita\""); + "src=\"/portal/resource/app/appDirectoryBonita/error-500/content/?app=appDirectoryBonita\""); } @Test