Browse Source

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 <vjt@openssl.it>
tags/8.13.3^0
Anna Koskinen 2 years ago
parent
commit
09f1f3d70e
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      server/src/main/java/com/vaadin/server/VaadinPortlet.java

+ 1
- 1
server/src/main/java/com/vaadin/server/VaadinPortlet.java View 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")) {

Loading…
Cancel
Save