This is a question for the users list, not the dev list.
Mark On 12/06/2023 05:48, Conrad T. Pino wrote:
Platform: Debian 11.7 Tomcat 9.0.43-2~deb11u6 https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/valves/ValveBase.html https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/valves/RequestFilterValve.html https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/connector/Request.html I'm experimenting with extending org.apache.catalina.valves.ValveBase org.apache.catalina.valves.RequestFilterValve and the invoke method argument request.getPathInfo() returns null as does request.getPathTranslated() method. I found request.getRequestURI() produces a useful value and I'm working with that. This code snippet seems to get work: String goodURI = request.getRequestURI(); request.setPathInfo(goodURI); String goodPath = request.getPathTranslated(); but I'm concerned about unintended downstream side effects. At what point should the following methods produce valid values? request.getPathInfo(); request.getPathTranslated(); Best regards, Conrad T. Pino --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org