-
Bug
-
Resolution: Done
-
Major
-
7.3.6.GA
-
False
-
False
-
-
-
-
-
-
+
-
Undefined
-
-
In Undertow, when the class "io.undertow.util.CanonicalPathUtils" is used to canonicalize a given path URI, it may ignore some two-dot segments (../) when the calculated path goes beyond/outside the servlet context.
Reference: JBEAP-21543
The javadoc of getRequestDipatcher says:
The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. This method returns null if the servlet container cannot return a RequestDispatcher.
So a path like /../../../something is currently returning the dispatcher to /something which is against the spec or at least very weird. Returning null is much more aligned with the spec and with the reference implementation.
There will be a way (system property) of setting back the previous behavior just in case.
- is caused by
-
UNDERTOW-1886 Request dispatcher is returned when the path points to outside the servlet context
- Resolved
- is cloned by
-
JBEAP-21589 [GSS](7.3.z) UNDERTOW-1886 - Undertow ignores two-dot segments in relative path URI when its canonicalized path is outside servlet context
- Closed
- is incorporated by
-
JBEAP-21270 [GSS] (7.4.z) Upgrade undertow from 2.2.5.Final-redhat-00001 to 2.2.9.Final-redhat-00001
- Closed