Ver código fonte

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 anos atrás
pai
commit
09f1f3d70e
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 1
server/src/main/java/com/vaadin/server/VaadinPortlet.java Ver arquivo

@@ -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")) {

Carregando…
Cancelar
Salvar