You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/06/08 08:40:51 UTC
[tomcat] branch 9.0.x updated: Fix 65332 - javac permissions with
Java 9 onwards for JSPs
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 09b1f9a Fix 65332 - javac permissions with Java 9 onwards for JSPs
09b1f9a is described below
commit 09b1f9a3deb9345e095f331d65367e3561a0cbd4
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jun 8 09:39:16 2021 +0100
Fix 65332 - javac permissions with Java 9 onwards for JSPs
https://bz.apache.org/bugzilla/show_bug.cgi?id=65332
---
conf/catalina.policy | 7 ++++++-
webapps/docs/changelog.xml | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/conf/catalina.policy b/conf/catalina.policy
index 2e6f8df..91b7c83 100644
--- a/conf/catalina.policy
+++ b/conf/catalina.policy
@@ -50,9 +50,14 @@ grant codeBase "file:${java.home}/lib/ext/-" {
permission java.security.AllPermission;
};
+// This permission is required when using javac to compile JSPs on Java 9
+// onwards
+//grant codeBase "jrt:/jdk.compiler" {
+// permission java.security.AllPermission;
+//};
-// ========== CATALINA CODE PERMISSIONS =======================================
+// ========== CATALINA CODE PERMISSIONS =======================================
// These permissions apply to the daemon code
grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 47af7b8..1ea53e9 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -230,6 +230,13 @@
parameters, the method that requires the fewest varargs is preferred.
(markt)
</fix>
+ <add>
+ <bug>65332</bug>: Add a commented out section in
+ <code>catalina.policy</code> that provides the necessary permissions to
+ compile JSPs with javac when running on Java 9 onwards with a security
+ manager. It is commented out as it will cause errors if used with
+ earlier Java versions. (markt)
+ </add>
</changelog>
</subsection>
<subsection name="WebSocket">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org