Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2.2
-
None
-
None
-
Webapp deployment in Jetty
Description
If I config a web filter (say anon) for a path /**/public and make a request to /mystuff;filter=toys/prices/public the filter is not triggered because WebUtils.decodeAndCleanUriString() removes everything after the ';' (so it only tries to match on /mystuff). The fix is to change
int semicolonIndex = uri.indexOf(';');
to
int lastSlash = uri.lastIndexOf('/');
int semicolonIndex = uri.lastIndexOf(';');
if(semicolonIndex > lastSlash) then drop trailing matrix params. So that matrix params in parent path segments are left intact.