DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41509>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41509

           Summary: Jasper tries to add permissions to readonly
                    PermissionCollection
           Product: Tomcat 6
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Javadoc: 
http://java.sun.com/javase/6/docs/api/java/security/Policy.html#getPermissions
(java.security.CodeSource)
Policy Javadoc says that method getPermissions(java.security.CodeSource) is 
optional and policies do not have to implement it. At least nobody said that 
returned collection will be editable. So to avoid exceptions a possible 
solution is to check whether permissions can be added before trying to do that.

Stacktrace:
java.lang.SecurityException: attempt to add a Permission to a readonly 
Permissions object
        at java.security.Permissions.add(Permissions.java:110)
        at java.security.Policy$UnsupportedEmptyCollection.add(Policy.java:790)
        at org.apache.jasper.compiler.JspRuntimeContext.initSecurity
(JspRuntimeContext.java:487)
        at org.apache.jasper.compiler.JspRuntimeContext.<init>
(JspRuntimeContext.java:142)
        at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:121)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to