scriptName += req.getPathInfo();
env.put("SCRIPT_NAME", scriptName);
env.put("SCRIPT_PATH", req.getRequestURI());
// store information about the hierarchy prefix used on the request
PDashContext dash = getContext(req);
String uriPrefix = dash.getUriPrefix();
if (uriPrefix != null && uriPrefix.endsWith("/")) {
env.put("PATH_INFO", uriPrefix.substring(0, uriPrefix.length() - 1));
} else {
env.put("PATH_INFO", "");
}
env.put("PATH_TRANSLATED", dash.getProjectPath());
env.put("REQUEST_URI", uriPrefix + baseRequest.getUri());
// store the query string, if one was present
String queryString = req.getQueryString();
if (queryString != null && queryString.length() > 0)