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

Java Plugin does not parse dnsDomainIs in a proxy.pac file correctly

    XMLWordPrintable

Details

    • x86
    • windows_xp

    Backports

      Description

        When proxy.pac is used for java plugin such as:

        function FindProxyForURL(url,host)
        {
        if(dnsDomainIs("java.com")){
           return "DIRECT";
        }
        return "PROXY doesnt_exist:80";
        }

        ===
        Using that proxy.pac in the web browser, and then setting the java plugin to use the browser's settings, I then go to:
        http://java.com/en/download/help/testvm.xml

        The java plugin starts up, and it incorrectly tries to make a connection using the doesnt_exist:80 proxy

        It should read the dnsDomainIs and use a DIRECT connection instead of trying to use doesnt_exist:80 and then falling back to DIRECT mode after that.

        console shows:
        network: Connecting http://java.com/en/img/download/t6.gif with proxy=HTTP @ doesnt_exist:80
        The example proxy syntax used above is incorrect.

        dnsDomainIs takes two parameters.

        function should be :

        function FindProxyForURL(url,host)
        {
        if(dnsDomainIs(host, "java.com")){
           return "DIRECT";
        }
        return "PROXY doesnt_exist:80";
        }

        Attachments

          Issue Links

            Activity

              People

                dgu Dennis Gu (Inactive)
                mhmiller Matt Miller (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: