if (dsPath.startsWith("/_data")) {
// NOTE: we need to strip out the data prefix since it has been forwarded to us with it but the table doesn't have it
request.setAttribute("_DS_PATH", dsPath.substring("/_data".length()));
log.debug("dsPath in filter: " + dsPath);
log.debug("attribute in filter: " + request.getAttribute("_DS_PATH"));
chain.doFilter(new OrderedParameterRequestWrapper(_req), response);
}
else {
log.debug("data filter dspath: " + dsPath);
request.setAttribute("_DS_PATH", dsPath);
if (dsPath.startsWith("/_system"))
chain.doFilter(new OrderedParameterRequestWrapper(_req), response);
else
chain.doFilter(request, response);
}
}
}