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

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

    Details

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

      Description

      DESCRIPTION:
      Browse functionality in java.awt.Desktop API is not throwing the "Permission Exception" when it is used for launching Unsigned 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                denis Denis Fokin (Inactive)
                Reporter:
                dkorbel David Korbel (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: