"Browse" functionality is using IE to launch applications instead of throwing "P

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 6u5
    • Component/s: client-libs
    • sparc
    • solaris_2.5.1

      DESCRIPTION:
      Browse functionality in java.awt.Desktop API is not throwing the "Permission Exception" when it is used for launching signed applets.

      TESTCASE DESCRIPTION
      Create test.html:
      ==========================================================
      <HTML>
      <BODY>
      <APPLET CODE=SignedAppletDemo ARCHIVE=SignedApplet.jar HEIGHT=300 WIDTH=1000>
      <PARAM NAME=dirPath VALUE=CWD>
      </APPLET>
      </BODY>
      </HTML>
      ==========================================================

      Make sure the applet reference in the html page is a signed applet.
      you could use this link (http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html)

      Create Test.java:
      ==========================================================
      import java.awt.Desktop;

      public class Test {
        public static void main(String args[]) throws Exception {
          Desktop.getDesktop().browse(new java.net.URI("test.html"));
        }
      }
      ==========================================================

      Run the test case:

        java Test

      and do an operation on the applet which requires explicit privilege

      "Permission denied" error will not occur as expected by the user.

            Assignee:
            Oleg Sukhodolsky (Inactive)
            Reporter:
            David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: