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
This commit is contained in:
Manuel Rego Casasnovas 2011-11-21 17:02:47 +01:00
parent c364192df6
commit 13a8be679b

View file

@ -45,11 +45,16 @@ public class MatrixParameters {
return extract(request.getRequestURI());
}
/**
* Extracts matrix parameters but skipping "jsessionid"
*/
public static Map<String, String> extract(String string) {
Map<String, String> result = new HashMap<String, String>();
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;
}