-
Bug
-
Resolution: Fixed
-
P1
-
6u18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2185163 | 6-pool | Unassigned | P2 | Closed | Not an Issue |
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)
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)
- backported by
-
JDK-2185163 Applets using JNLP fails to load if bits are tried to access using HTTP basic auth scheme
- Closed
- relates to
-
JDK-6834128 should not download applet JNLP file on EventDispatchThread
- Closed