Index: openacs-4/packages/acs-tcl/tcl/security-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/security-procs.tcl,v diff -u -r1.126.2.90 -r1.126.2.91 --- openacs-4/packages/acs-tcl/tcl/security-procs.tcl 14 May 2023 23:08:53 -0000 1.126.2.90 +++ openacs-4/packages/acs-tcl/tcl/security-procs.tcl 19 May 2023 12:14:14 -0000 1.126.2.91 @@ -428,12 +428,18 @@ # set external_registry "" if {[ns_conn isconnected]} { - set external_registry [dict get [sec_login_read_cookie] external_registry] - if {$external_registry ne "" && ![nsf::is object $external_registry]} { - ns_log warning "external registry object '$external_registry'" \ - "used for login of user [ad_conn untrusted_user_id]" \ - "does not exist. Ignored." - set external_registry "" + try { + set external_registry [dict get [sec_login_read_cookie] external_registry] + if {$external_registry ne "" && ![nsf::is object $external_registry]} { + ns_log warning "external registry object '$external_registry'" \ + "used for login of user [ad_conn untrusted_user_id]" \ + "does not exist. Ignored." + set external_registry "" + } + } trap {AD_EXCEPTION NO_COOKIE} {errorMsg} { + # + # There is no such such cookie, therefore no external registry + # } } return $external_registry