remove trailing servlet path slash on WebSphere only (SPR-7064)
This commit is contained in:
parent
69c4cdf975
commit
1ed05eceb9
|
|
@ -295,6 +295,7 @@ public class MvcNamespaceTests {
|
||||||
request.setRequestURI("/myapp/app/bar");
|
request.setRequestURI("/myapp/app/bar");
|
||||||
request.setContextPath("/myapp");
|
request.setContextPath("/myapp");
|
||||||
request.setServletPath("/app/");
|
request.setServletPath("/app/");
|
||||||
|
request.setAttribute("com.ibm.websphere.servlet.uri_non_decoded", "/myapp/app/bar");
|
||||||
HandlerExecutionChain chain = mapping2.getHandler(request);
|
HandlerExecutionChain chain = mapping2.getHandler(request);
|
||||||
assertEquals(4, chain.getInterceptors().length);
|
assertEquals(4, chain.getInterceptors().length);
|
||||||
assertTrue(chain.getInterceptors()[1] instanceof ConversionServiceExposingInterceptor);
|
assertTrue(chain.getInterceptors()[1] instanceof ConversionServiceExposingInterceptor);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue