Forum OpenACS Development: Redirect after upgrading to oacs-5.10.1

Happy new year to all!

After upgrading a site (running behind Nginx) from oacs-5.10.0 to oacs-5-10.1 every request to the site is redirected to https://0.0.0.1.

The upgrade (core packages only) went fine without any error in the log, even after restarting, but sending any request produces a redirect with the following notice in the file log:

security::validated_host_header: found gestionale.iter-web.it in global virtual server configuration for nssock

The message comes from the following piece of the security::validatedhostheader proc :

if {$normalizedHostHeaderValue in $names} {
    ns_log notice "security::validated_host_header: found $hostHeaderValue"  "in global virtual server configuration for $driver"
     return 1
}

I think that the proc should instead return the $normalizedHostHeaderValue to the only caller utilcurrentlocation: doing so the redirect disappear.

Claudio

Collapse
Posted by Gustaf Neumann on
Dear Claudio,

You are fully right!
The change is applied to the oacs-5-10 and oacs-head branch (i.e. available also via upgrade from repository starting tomorrow).

all the best and many thanks!
-g