tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46096] DefaultAnnotationProcessor.processAnnotations should use doPrivileged to call getDeclaredFields
Date Fri, 31 Oct 2008 12:21:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46096





--- Comment #2 from Richard Evans <richard.evans@datanomic.com>  2008-10-31 05:21:13
PST ---
As a temporary workround, I added a java.lang.RuntimePermission for JSPs to
catalina.policy.

I then had a different exception:

java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at
java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
        at java.lang.System.getProperty(System.java:688)
        at
org.apache.jasper.runtime.BodyContentImpl.<clinit>(BodyContentImpl.java:44)
        at
org.apache.jasper.runtime.PageContextImpl.pushBody(PageContextImpl.java:717)
        at
org.apache.jasper.runtime.PageContextImpl.pushBody(PageContextImpl.java:707)

I think the property access in BodyContentImpl also needs to run in a
privileged block.  Or the class should be initialized at startup.

This probably should be a different bug?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message