tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader WebappLoader.java
Date Tue, 16 Oct 2001 07:02:54 GMT
remm        01/10/16 00:02:54

  Modified:    catalina/src/share/org/apache/catalina/loader Tag:
                        tomcat_40_branch WebappLoader.java
  Log:
  - When I did the class loader cleanup some time ago, I incorrectly removed
    some permissions, which unfortunately went undetected for quite some time.
    Thanks to Patrick Luby for reporting the problems.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.12.2.2  +12 -5     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappLoader.java
  
  Index: WebappLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappLoader.java,v
  retrieving revision 1.12.2.1
  retrieving revision 1.12.2.2
  diff -u -r1.12.2.1 -r1.12.2.2
  --- WebappLoader.java	2001/10/10 00:18:09	1.12.2.1
  +++ WebappLoader.java	2001/10/16 07:02:54	1.12.2.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappLoader.java,v
1.12.2.1 2001/10/10 00:18:09 remm Exp $
  - * $Revision: 1.12.2.1 $
  - * $Date: 2001/10/10 00:18:09 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappLoader.java,v
1.12.2.2 2001/10/16 07:02:54 remm Exp $
  + * $Revision: 1.12.2.2 $
  + * $Date: 2001/10/16 07:02:54 $
    *
    * ====================================================================
    *
  @@ -119,7 +119,7 @@
    *
    * @author Craig R. McClanahan
    * @author Remy Maucherat
  - * @version $Revision: 1.12.2.1 $ $Date: 2001/10/10 00:18:09 $
  + * @version $Revision: 1.12.2.2 $ $Date: 2001/10/16 07:02:54 $
    */
   
   public class WebappLoader
  @@ -804,6 +804,14 @@
   
           try {
   
  +            URL rootURL = servletContext.getResource("/");
  +            classLoader.setPermissions(rootURL);
  +
  +            String contextRoot = servletContext.getRealPath("/");
  +            if (contextRoot != null) {
  +                classLoader.setPermissions(contextRoot);
  +            }
  +
               URL classesURL =
                   servletContext.getResource("/WEB-INF/classes/");
               if (classesURL != null)
  @@ -814,7 +822,6 @@
                   classLoader.setPermissions(libURL);
               }
   
  -            String contextRoot = servletContext.getRealPath("/");
               if (contextRoot != null) {
   
                   if (libURL != null) {
  
  
  

Mime
View raw message