Hi, There are some discrepancies in URL encoding in the request dispatcher for jakarta.servlet.include.context_path. - Request.getContextPath is URL encoded, this is settled - jakarta.servlet.forward.context_path saw a bug come in some time ago, and it was switched to being URL encoded - jakarta.servlet.include.context_path remains in the decoded camp, but there's some mixed matching with a comparison with a request.getContextPath, which is incorrect (lines 698, 701 and 703)
The specification language is not very clear. "These attributes are accessible from the included servlet via the getAttribute method on the request object and their values must be equal to the request URI, context path, servlet path, mapping, path info, and query string of the included servlet, respectively." I would think "jakarta.servlet.include.context_path" should be URL encoded, rather than decoded as it is now, with changes to be made to lines 387 and 703 to use context.getEncodedPath(). Comments ? Rémy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
