-
Improvement
-
Resolution: Fixed
-
Major
-
3.5.4
-
None
-
-
Yes
-
Empty show more show less
-
Yes
Proposed implementation:
1) A basic mapping must adhere to the servlet spec exactly (i.e., /test* would require the url passed from the browser to literally be '/test*') servletPath and pathInfo are split according to the spec.
2) A mapping prepended with 'regex:' is treated as a regular expression but the servletPath and pathInfo are more complex:
a) The servletPath will always include everything that is within the mapping url with the following exception
b) If the regex ends with a '/' it is included, along with any other characters to the end of the request url as part of the pathInfo
c) No groupings (parentheses) are allowed unless escaped to be treated as literals
See attached patch for implementation of this with updated tests.
- is related to
-
MAGNOLIA-2899 Make ServletDispatchingFilter i18n aware
- Closed
- supersedes
-
MAGNOLIA-1984 Mappings for wrapped servlets are not strict enough
- Closed