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

raeburn raeburn at source.lon-capa.org
Tue Jul 29 22:40:04 EDT 2025


raeburn		Wed Jul 30 02:40:04 2025 EDT

  Modified files:              
    /loncom/auth	lontokacc.pm 
  Log:
  - Eliminate 'Failed to transfer' in lonnet.log when PerlCleanupHandler is
    called after lontrans.pm redirected request to WAF/Reverse Proxy alias.  
  
  
Index: loncom/auth/lontokacc.pm
diff -u loncom/auth/lontokacc.pm:1.20 loncom/auth/lontokacc.pm:1.21
--- loncom/auth/lontokacc.pm:1.20	Fri Dec 18 15:23:03 2020
+++ loncom/auth/lontokacc.pm	Wed Jul 30 02:40:04 2025
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Access Handler for User File Transfers
 #
-# $Id: lontokacc.pm,v 1.20 2020/12/18 15:23:03 raeburn Exp $
+# $Id: lontokacc.pm,v 1.21 2025/07/30 02:40:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -54,7 +54,9 @@
     if ($r->status==200) {
         unlink($r->filename);
 	#&Apache::lonnet::logthis('Unlinking '.$r->filename);
-    } else {
+    } elsif (($r->status==302) && (&Apache::lonnet::get_proxy_alias())) {
+        #Nothing to do when lontrans redirects to alias.
+    } elsif ($r->filename ne '') {
         &Apache::lonnet::logthis('Failed to transfer '.$r->filename);
     }
     return OK;




More information about the LON-CAPA-cvs mailing list