geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Dubrov (JIRA)" <...@geronimo.apache.org>
Subject [jira] Created: (GERONIMO-661) "Unchecked" permissions for all EJB methods ("*") do not work
Date Fri, 03 Jun 2005 10:10:47 GMT
"Unchecked" permissions for all EJB methods ("*") do not work
-------------------------------------------------------------

         Key: GERONIMO-661
         URL: http://issues.apache.org/jira/browse/GERONIMO-661
     Project: Geronimo
        Type: Bug
  Components: specs  
    Versions: 1.0-M4    
 Environment: Windows XP
    Reporter: Ivan Dubrov


EJBMethodPermissions.MethodSpec have incorrect serialization method. MethodSpec with parameters
methodName=null, methodInterface=null, methodParam=null (that should match any method) deserializes
with params methodName=null, methodInterface=null, methodParam="" (that matches any no-arg
methos)! 

As a result, EJB beans with all methods <unchecked/> do not work - AccessControlException
is thrown (since methodParam="" means no-arg methods, whille methodParam=null means any methods).

Here is the simple patch:

Index: EJBMethodPermission.java
===================================================================
--- EJBMethodPermission.java	(revision 179589)
+++ EJBMethodPermission.java	(working copy)
@@ -250,7 +250,7 @@
             if (methodParams == null) {
                 if (methodInterface == null) {
                     if (methodName == null) {
-                        actions = ",,";
+                        actions = "";
                     } else {
 
                         actions = methodName;


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message