From 09f1f3d70e788f5c788fbf5f0de0e5a883fd456b Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Wed, 11 Aug 2021 14:43:20 +0300 Subject: [PATCH] Add detection of HCL Digital Experience rebranding (#12242) (#12369) On HCL Digital Experience 8.5.5 CF19, the `getPortalInfo()` method returns "hcl digital experience/8.5", breaking detection of the servlet engine. This ultimately leads to methods such as `getHeader()` to return NULL, as the upstream HTTP request is not retrieved. Authored-by: Marcello Barnaba --- server/src/main/java/com/vaadin/server/VaadinPortlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/vaadin/server/VaadinPortlet.java b/server/src/main/java/com/vaadin/server/VaadinPortlet.java index 16da975719..1c62117209 100644 --- a/server/src/main/java/com/vaadin/server/VaadinPortlet.java +++ b/server/src/main/java/com/vaadin/server/VaadinPortlet.java @@ -574,7 +574,7 @@ public class VaadinPortlet extends GenericPortlet return new VaadinLiferayRequest(request, service); } - if (portalInfo.contains("websphere portal")) { + if (portalInfo.contains("websphere portal") || portalInfo.contains("hcl digital experience")) { return new VaadinWebSpherePortalRequest(request, service); } if (portalInfo.contains("weblogic portal")) { -- 2.39.5