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

Applets using JNLP fails to load if bits are tried to access using HTTP basic auth scheme

    Details

    • Subcomponent:
    • Introduced In Build:
      b02
    • Introduced In Version:
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      windows
    • Verification:
      Verified

      Backports

        Description

        HTTP basic auth is commonly used auth scheme which allows to provide credentials – in the form of a user name and password – when making a request. Now in case of applets it's working fine with traditional applets but fails to work with applets using JNLP

        Steps to reproduce:
        -------------------
        1) try to load the following applet with 6u18
        http://129.145.161.243/basicAuth/tests/HelloStage.html
        - Pop up asking for user/pass form browser should be there
        Enter
        user: jituB
        Pass: jitu20
        If applet fails to load with following exception then bug is reproduced:
        java.io.FileNotFoundException: JNLP file error: HelloStage_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
        at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        Exception: java.io.FileNotFoundException: JNLP file error: HelloStage_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file

        Try loading the same applet not restricted using basic auth scheme, it will get loaded fine
        http://129.145.161.243/HelloStage.html

        Try loading the traditional applet(not using JNLP) sitting inside the same restriced area as above mentioned basic auth applet, it will also get loaded fine:
        http://129.145.161.243/basicAuth/tests/Test.html
        (use the same user/pass mentioend above)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hdongorcl Hao Dong (Inactive)
                  Reporter:
                  jijising Jitender Singh (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: