[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm

raeburn raeburn at source.lon-capa.org
Wed Jan 30 11:23:47 EST 2013


raeburn		Wed Jan 30 16:23:47 2013 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - Eliminate unwanted log message on lonbalancer server when /adm/switchserver
    was called via internal_redirect, immediately following authentication.
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.141 loncom/auth/lonacc.pm:1.142
--- loncom/auth/lonacc.pm:1.141	Thu Dec  6 22:00:31 2012
+++ loncom/auth/lonacc.pm	Wed Jan 30 16:23:47 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.141 2012/12/06 22:00:31 raeburn Exp $
+# $Id: lonacc.pm,v 1.142 2013/01/30 16:23:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -396,9 +396,11 @@
     }
 
     my ($is_balancer,$otherserver);
-    
+
     if ($handle eq '') {
-	$r->log_reason("Cookie $handle not valid", $r->filename); 
+        unless (($requrl eq '/adm/switchserver') && (!$r->is_initial_req())) {
+	    $r->log_reason("Cookie $handle not valid", $r->filename);
+        }
     } elsif ($handle ne '') {
 
 # ------------------------------------------------------ Initialize Environment




More information about the LON-CAPA-cvs mailing list