From 13a8be679b55cfce8c3cd2be1da9a7a1d72eea0e Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Mon, 21 Nov 2011 17:02:47 +0100 Subject: [PATCH] Removed jsession parameter in EntryPoints matching conditions The ;jsession URI parameter is interfering EntryPointsHandler behaviour, causing that redirects when this variable is set don't work. FEA: ItEr75S04BugFixing --- .../libreplan/web/common/entrypoints/MatrixParameters.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/common/entrypoints/MatrixParameters.java b/libreplan-webapp/src/main/java/org/libreplan/web/common/entrypoints/MatrixParameters.java index 85e0c978d..65c2e886e 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/common/entrypoints/MatrixParameters.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/common/entrypoints/MatrixParameters.java @@ -45,11 +45,16 @@ public class MatrixParameters { return extract(request.getRequestURI()); } + /** + * Extracts matrix parameters but skipping "jsessionid" + */ public static Map extract(String string) { Map result = new HashMap(); Matcher matcher = matrixParamPattern.matcher(string); while (matcher.find()) { - result.put(matcher.group(1), matcher.group(2)); + if (!matcher.group(1).equals("jsessionid")) { + result.put(matcher.group(1), matcher.group(2)); + } } return result; }