Browse Source

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.
tags/8.14.0.alpha1
Marcello Barnaba 2 years ago
parent
commit
5dd5cdca20
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