glassfish
  1. glassfish
  2. GLASSFISH-11241

Generated classes/interfaces do not take on the proper ProtectionDomain

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: 3.1
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      11,241
    • Status Whiteboard:
      Hide

      v3_exclude

      Show
      v3_exclude

      Description

      In working on Java Web Start app client support for managed beans for 3.1, I
      discovered that the protection domains for the generated interfaces were null.
      (Java Web Start complained that the generated items, which are from the same
      package as classes and interfaces loaded from an automatically-signed JAR, did
      not have the same protection domain settings.)

      It looks like logic in two places in EjbOptinalIntfGenerator fetches the PD of
      the existing class or interface but does not assign the value to the instance
      field protectionDomain which is later used in defining the generated item.

        Activity

        Hide
        Tim Quinn added a comment -

        Correcting version and target milestone.

        This can be reproduced by working with the ejb devtest ejb/ejb31/security/simple.

        First (optional), turn on the console display for all Java Web Start launches:

        javaws -viewer

        In the Java Preferences windows, go to the Advanced tab and make sure Java
        Console->Show Console is chosen.

        Now build and deploy the app:

        ant clean build create-users deploy

        Now run the client:

        javaws
        "http://localhost:8080/ejb-ejb31-security-simpleApp/ejb-ejb31-security-simple-client?arg=ejb-ejb31-security-simple-ejb&arg=bob"

        You'll see an error in the console (if you turned it on) and in the error dialog
        box about the PD's not matching.

        Show
        Tim Quinn added a comment - Correcting version and target milestone. This can be reproduced by working with the ejb devtest ejb/ejb31/security/simple. First (optional), turn on the console display for all Java Web Start launches: javaws -viewer In the Java Preferences windows, go to the Advanced tab and make sure Java Console->Show Console is chosen. Now build and deploy the app: ant clean build create-users deploy Now run the client: javaws "http://localhost:8080/ejb-ejb31-security-simpleApp/ejb-ejb31-security-simple-client?arg=ejb-ejb31-security-simple-ejb&arg=bob" You'll see an error in the console (if you turned it on) and in the error dialog box about the PD's not matching.
        Hide
        Tim Quinn added a comment -

        Fix checked in (after Ken's review).

        Author: tjquinn
        Date: 2009-12-14 20:38:52+0000
        New Revision: 35104

        Modified:

        trunk/v3/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EjbOptionalIntfGenerator.java

        Show
        Tim Quinn added a comment - Fix checked in (after Ken's review). Author: tjquinn Date: 2009-12-14 20:38:52+0000 New Revision: 35104 Modified: trunk/v3/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EjbOptionalIntfGenerator.java

          People

          • Assignee:
            ksak
            Reporter:
            Tim Quinn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: