]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add detection of HCL Digital Experience rebranding (#12242) (#12369) 8.13 8.13.3
authorAnna Koskinen <Ansku@users.noreply.github.com>
Wed, 11 Aug 2021 11:43:20 +0000 (14:43 +0300)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 11:43:20 +0000 (14:43 +0300)
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 <vjt@openssl.it>
server/src/main/java/com/vaadin/server/VaadinPortlet.java

index 16da9757191fd1a84d0f2370501c7f0648dc4998..1c62117209c0591606654c2e2817d60a3479292b 100644 (file)
@@ -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")) {