Re: Should servletPath contain the welcome file?

2018-10-01 Thread Florent Guillaume
Ok thanks. I added a workaround in my code for the welcome file case. And indeed I had already observed other situations where requestURI = contextPath + servletPath + pathInfo is not true if there's normalization going on, for instance the fact that we can have: requestURI =

Re: Should servletPath contain the welcome file?

2018-10-01 Thread Mark Thomas
On 01/10/18 12:54, Florent Guillaume wrote: > Hi, > > I'm observing a behavior (Tomcat 9.0.10) with respect to getServletPath() > that I don't understand when reading the servlet spec. > > For a request http://localhost:8080/nuxeo/ui/ I get the following: > > httpRequest.getRequestURL() >

Should servletPath contain the welcome file?

2018-10-01 Thread Florent Guillaume
Hi, I'm observing a behavior (Tomcat 9.0.10) with respect to getServletPath() that I don't understand when reading the servlet spec. For a request http://localhost:8080/nuxeo/ui/ I get the following: httpRequest.getRequestURL() http://localhost:8080/nuxeo/ui/ httpRequest.getRequestURI()