Skip to content

Commit f615dcf

Browse files
committed
added debugging hooks
1 parent ab209ae commit f615dcf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/acs-tcl/tcl/security-procs.tcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,6 +2657,7 @@ ad_proc -public security::driver {} {
26572657
# If we can use the "ns_driver info" interface, return the
26582658
# potentially found secure driver.
26592659
#
2660+
#ns_log notice "security::driver returns <$::acs::sdriver>"
26602661
return $::acs::sdriver
26612662

26622663
} on error {errorMsg} {
@@ -2849,6 +2850,8 @@ ad_proc -private security::configured_locations {
28492850
# Get configuration information from the configured servers.
28502851
#
28512852
set driver_info [security::configured_driver_info]
2853+
#ns_log notice "configured_driver_info: $driver_info"
2854+
28522855
foreach d $driver_info {
28532856
#
28542857
# port == 0 means that the driver is just used for sending,
@@ -2873,11 +2876,13 @@ ad_proc -private security::configured_locations {
28732876
lappend hosts {*}[ns_set values $virtualservers]
28742877
}
28752878
}
2879+
#ns_log notice "adding configured locations hosts: $hosts"
28762880
foreach entry $hosts {
28772881
#
28782882
# The value of the "DRIVER/servers" section might
28792883
# contain also a port.
28802884
#
2885+
#ns_log notice "get proto from <[ns_parsehostport $entry]> or <$d>"
28812886
set d1 [dict merge $d [ns_parsehostport $entry]]
28822887
set proto [dict get $d proto]
28832888
set host [dict get $d1 host]
@@ -2894,6 +2899,7 @@ ad_proc -private security::configured_locations {
28942899
if {($proto eq "https" && $port eq "443")
28952900
|| ($proto eq "http" && $port eq "80")
28962901
} {
2902+
#ns_log notice "join location 1 -proto $proto -hostname $host"
28972903
set location [util::join_location -proto $proto -hostname $host]
28982904
if {$location ni $locations} {
28992905
lappend locations $location
@@ -2903,6 +2909,7 @@ ad_proc -private security::configured_locations {
29032909
# Add a variant with the omitted port to
29042910
# portless_locations.
29052911
#
2912+
#ns_log notice "join location 2 -proto $proto -hostname $host"
29062913
set location [util::join_location -proto $proto -hostname $host]
29072914
if {$location ni $portless_locations
29082915
&& $location ni $locations
@@ -2912,6 +2919,7 @@ ad_proc -private security::configured_locations {
29122919
#
29132920
# Add always a variant with the port to locations.
29142921
#
2922+
#ns_log notice "join location 3 -proto $proto -hostname $host"
29152923
set location [util::join_location -proto $proto -hostname $host -port $port]
29162924
if {$location ni $locations} {
29172925
lappend locations $location

0 commit comments

Comments
 (0)