title: Spring 5.0.3 RequestRejectedException: The request was rejected because the URL was not normalized
body: <p>Not sure if this is a bug with Spring 5.0.3 or a new feature to fix things on my end.</p>
  
  <p>After the upgrade, I am getting this error. Interestingly this error is only on my local machine. Same code on test environment with HTTPS protocol works fine. </p>
  
  <p>Continuing... </p>
  
  <p>The reason I am getting this error is because my URL for loading the resultant JSP page is <code>/location/thisPage.jsp</code>. Evaluating code <code>request.getRequestURI()</code> gives me result <code>/WEB-INF/somelocation//location/thisPage.jsp</code>. If I fix URL of JSP page to this <code>location/thisPage.jsp</code>, things work fine. </p>
  
  <p>So my question is, should I remove <code>/</code> from <code>JSP</code> path in code because that's what is required going forward. Or <code>Spring</code> has introduced a bug as the only difference between my machine and test environment is protocol <code>HTTP</code> versus <code>HTTPS</code>. </p>
  
  <pre><code> org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL was not normalized.
      at org.springframework.security.web.firewall.StrictHttpFirewall.getFirewalledRequest(StrictHttpFirewall.java:123)
      at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:194)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:186)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
  </code></pre>