diff options
author | Marcello Barnaba <vjt@openssl.it> | 2021-08-09 15:55:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 16:55:48 +0300 |
commit | 5dd5cdca20b5ece095057c852b3a40f01bc95298 (patch) | |
tree | 638084e2e4e06c16106b374601c062a3df775ca5 /server | |
parent | 20003a234ecbd6065902f07d7510c4fdb050a83b (diff) | |
download | vaadin-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.java | 2 |
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")) { |