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

Unsigned JNLP Application is able to open local file by Application.getHostServices().showdocument()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • fx2.0
    • None
    • deploy
    • Scrum #279, JRE7 b147, xp sp3 x86, Firefox 5.0

      Steps to reproduce:
          1. Launch the Unsigned jnlp JavaFX Application from
              http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/TestFXShowdocumentNeg.jnlp
          2. The application should get launched successfully and try to open the local file( using file protocol)
          3. Actually result: if the file existed, it will open the file on browser. if the file doesn't exist, it will open a new browser windows with the invalid uri.
              Expected result: A Security Exception should be thrown. No any windows or files should get opened.

      Note: Applet works fine:
              http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/TestFXShowdocumentNeg.html

      Src: http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/src/ShowdocumentTest.java




            ngthomas Thomas Ng (Inactive)
            yanqchen Sheldon Chen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: