tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Dockery" <s...@sbdconsultants.com>
Subject Re: FilePermission feature?
Date Tue, 11 Feb 2003 16:29:58 GMT
Don't you mean...

 grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}/webapps/my_app/-",
                                       "read,write,delete";
};

Sean Dockery
sean@sbdconsultants.com
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
----- Original Message -----
From: "Dany Crepin" <crepindany@wanadoo.be>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, February 10, 2003 12:39
Subject: FilePermission feature?


SecurityManager in Tomcat 4.0.x
I don't succeed in giving classes in a specific webapp  "read,write"
FilePermission.
The wildcards never work.


 grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}/my_app/-",
                                       "read,write,delete";
};

 only

 grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}/my_app/file1.txt",
                                       "read,write,delete";
};

 will work. It's very annoying if I want to implement a file upload, or  for
file-based counters, for example.

Any Idea



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message