aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMarcello Barnaba <vjt@openssl.it>2021-08-09 15:55:48 +0200
committerGitHub <noreply@github.com>2021-08-09 16:55:48 +0300
commit5dd5cdca20b5ece095057c852b3a40f01bc95298 (patch)
tree638084e2e4e06c16106b374601c062a3df775ca5 /server
parent20003a234ecbd6065902f07d7510c4fdb050a83b (diff)
downloadvaadin-framework-5dd5cdca20b5ece095057c852b3a40f01bc95298.tar.gz
vaadin-framework-5dd5cdca20b5ece095057c852b3a40f01bc95298.zip
Add detection of HCL Digital Experience rebranding (#12242)
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.
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/server/VaadinPortlet.java2
1 files changed, 1 insertions, 1 deletions
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")) {