Update logic to fetch the path of request
Issue-ID: AAF-645
Change-Id: I4ba4f3623adc14add20555f3c50e4e81376689d7
Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain fc) throws IOException, ServletException {
HttpServletRequest hreq = (HttpServletRequest)req;
final String meth = hreq.getMethod();
- final String path = hreq.getContextPath()+hreq.getPathInfo();
+ String path = hreq.getContextPath()+hreq.getPathInfo();
+
+ if(path == null || path.isEmpty() || "null".equals(path))
+ path = hreq.getRequestURI().substring(hreq.getContextPath().length());
+
List<String> list = publicPaths.get(meth);
if(list!=null) {
for( String p : publicPaths.get(meth)) {