Forum OpenACS Development: Re: rp_handler and host-node mapped subsites

Collapse
Posted by Torben Brosten on
As long as you're staying in the same directory, consider converting to a relative reference that's within the same directory by removing any leading forward slash references (and what's between them).

for example,

if ad_conn url returns:

/index.tcl

convert it to:

index.tcl

This doesn't work if you're swapping around in the file hierarchy, but should work fine for the simple cases.

Collapse
Posted by Eduardo Santos on
Hi Dane, Torben and everyone,

I've done a lot of investigation on this problem, and yes, basically any call the ad_con will eventually fail in a host node mapped subsite.

The fix is tricky befure the call to ad_conn -set is done AFTER the filters are proccessed. So, even if we fix the filters (rp_filter) and fix the redirect, ad_conn -set won't see this change.

To fix it would be a big problem, because we would have to change the exact place in request-processor where the ad_conn -set is called. Ni first looking it would be a major rewriting of request processor code.

Mayvbe somebody with better knowledge on RP can propose a better solution.