in server/src/jetbrains/buildServer/staticUIExtensions/web/StaticResourcesController.java [102:125]
protected Resource getResource(@NotNull final HttpServletRequest request) {
if (myProvider == null) {
return null;
}
final String path = WebUtil.getPathFromUrl(WebUtil.getOriginalPathWithoutAuthenticationType(request));
if (LOG.isDebugEnabled()) {
LOG.debug("Trying relative path [" + path + "]");
}
final Resource resource = myProvider.getResourceForPath(path);
if (resource != null && resource.exists() && resource.isReadable()) {
if (LOG.isDebugEnabled()) {
LOG.debug("Found matching resource: " + resource);
}
return resource;
} else if (LOG.isDebugEnabled()) {
if (resource == null) {
LOG.debug("Relative resource not found");
} else {
LOG.debug("Relative resource doesn't exist or isn't readable: " + resource);
}
}
return null;
}