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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: fx2.0
    • Component/s: deploy
    • Labels:
    • Environment:

      Scrum #279, JRE7 b147, xp sp3 x86, Firefox 5.0

      Description

      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




        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: