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

WebEngine doesn't seem to request authentication via Authenticator.getPasswordAuthentication() when loading webpages through a proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.0.2
    • javafx
    • None
    • Windows XP Professional Service Pack 3; JDK 1.6.30; NetBeans 7.1.

    • web

      I'm using the SwingInterop sample in the javafx-samples-2.0.2 package in my company's intranet. Upon selecting the Web Browser tab, I can open internal websites just fine, but any external website fails to load. I tweaked the SwingInterop example in NetBeans 7.1 by using Authenticator.setDefault() and ProxySelector.setDefault(), so my proxy server and authentication credentials would get used. If I try to open an external website using, say new URL("http://www.oracle.com").openStream(), my Authenticator gets invoked and I can read the resulting input stream just fine. However, if I try to open the same URL in the Web Browser tab, my Authenticator won't get called and I'll receive the following error message in WebView:

      ==========
      Access Denied (authentication_failed)

      Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
      This is typically caused by an incorrect username and/or password, but could also be caused by network problems.

      For assistance, contact your network support team.
      ==========

            vbaranov Vasiliy Baranov (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: