Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-661

"Unchecked" permissions for all EJB methods ("*") do not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-M4
    • Component/s: specs
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      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;

        Attachments

          Activity

            People

            • Assignee:
              djencks David Jencks
              Reporter:
              wfrag Ivan Dubrov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: