Browse Source

Update ServletPortletHelper.java (#12087) (#12100)

This is needed to get /UIDL working behind a reverse proxy. Without the change pathInfo would be "/UIDL" but prefix would be "/UIDL/" in line 105.

Authored-by: Clemens von Schwerin <clemens.vonschwerin@gmail.com>
tags/8.11.3
Anna Koskinen 3 years ago
parent
commit
ee48d43aac
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      server/src/main/java/com/vaadin/server/ServletPortletHelper.java

+ 4
- 0
server/src/main/java/com/vaadin/server/ServletPortletHelper.java View File

@@ -98,6 +98,10 @@ public class ServletPortletHelper implements Serializable {
prefix = '/' + prefix;
}

if (!pathInfo.endsWith("/") && prefix.endsWith("/")) {
pathInfo += '/';
}

if (pathInfo.startsWith(prefix)) {
return true;
}

Loading…
Cancel
Save