Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4358791

Unsigned Applet that references signed jar files are getting AccessControl Excep

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

       
        Jarring an entire Applet and signing this file using a certificate
       that has been verified by Verisign, that will invoke a Java Plugin
       Security warning Dialog to appear when accessed thru a browser.

         The same is also true if you breakup your Applet into multiply jar files,
       bundling parts of the Applet that will access the local resources of the client into a signed jar file. When a user invokes the Applet from the Web Server
       thru the Applet.class and a reference is made from the Applet.class to the
       signed jar a Java Plugin Security warning Dialog will appear to quiry the end
       user.

         You can see this by acessing http://greatpoint/test_ok.html
       and clicking on the test button. Note Java Plugin 1.3 is needed.

          Though if the user invokes the Applet via an unsigned jar and a
       reference is made to the signed jar file an
       java.security.AccessControlException will be thrown in the Java
       Console of the Java Plug-in.

          You can see this by acessing http://greatpoint/test_fail.html
       and clicking on the test button. Note Java Plugin 1.3 is needed.

       The difference is that the Applet.class is now jarred.

       The testcase is in the attachments.

       1) Save all the files into the public_html directory of a Web Server and
          and untar test.tar creating a test directory that holds the MyApplet.class.

       2) Access the test_fail.html to see the bug and access test_ok.html to see
          the desired behavior.
       

        Attachments

          Activity

            People

            Assignee:
            ccheung Calvin Cheung
            Reporter:
            atongschsunw Albert Tong-schmidt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: