rp_resources_filter (private)

 rp_resources_filter why

Defined in packages/acs-tcl/tcl/request-processor-procs.tcl

This filter runs on all URLs of the form /resources/*. We just ns_returnfile the file, no permissions are checked, the ad_conn structure is not initialized, etc in order to maximize throughput for resource files. There are three mapping possibilities: /resources/package-key/* maps to root/packages/package-key/www/resources/*. If that fails, we map to root/packages/acs-subsite/www/resources/* If that fails, we map to root/www/resources/* If the file doesn't exist we'll log an error and return filter_ok, which will allow packages mounted at "/resources" in a legacy site to work correctly. This is a horrible kludge which may disappear after discussion with the gang.

Parameters:
why
Author:
Don Baccus <dhogaza@pacifier.com>

Partial Call Graph (max 5 caller/called nodes):
%3 rp_resources_filter_aolserver rp_resources_filter_aolserver rp_resources_filter rp_resources_filter rp_resources_filter->rp_resources_filter_aolserver

Testcases:
No testcase defined.
Source code:
rp_resources_filter_aolserver $why
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: