tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/context PolicyInterceptor.java
Date Sat, 09 Sep 2000 23:29:33 GMT
costin      00/09/09 16:29:33

  Modified:    src/share/org/apache/tomcat/context PolicyInterceptor.java
  Log:
  Added a small comment to PolicyInterceptor.
  
  Right now only Jasper is using the protection domain - everything else is
  based on standard URLClassLoader.
  
  Revision  Changes    Path
  1.7       +4 -4      jakarta-tomcat/src/share/org/apache/tomcat/context/PolicyInterceptor.java
  
  Index: PolicyInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/context/PolicyInterceptor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PolicyInterceptor.java	2000/08/24 14:25:33	1.6
  +++ PolicyInterceptor.java	2000/09/09 23:29:32	1.7
  @@ -147,9 +147,6 @@
       public void contextInit( Context context)
   	throws TomcatException
       {
  -	//	SecurityManager sm = System.getSecurityManager();
  -	//	if( sm==null ) return;
  -
   	ContextManager cm = context.getContextManager();
   	String base = context.getDocBase();
   	    
  @@ -158,7 +155,8 @@
   	    URL url = new URL("file:" + dir.getAbsolutePath());
   	    CodeSource cs = new CodeSource(url,null);
   	    
  -	    /* Try the context permissions ( set in the config file of via API calls )
  +	    /* Try the context permissions ( set in the config file via
  +	       API calls )
   	     */
   	    Permissions p = (Permissions)context.getPermissions();
   	    
  @@ -189,6 +187,8 @@
   		}
   	    }
   
  +	    // This is used only for Jasper ! Should be replaced by
  +	    // a standard URLClassLoader.
   	    ProtectionDomain pd = new ProtectionDomain(cs,p);
   	    context.setProtectionDomain(pd);
   	    // new permissions - added context manager and file to whatever was
  
  
  

Mime
View raw message