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

Java is treating a variable declaration with a "PROXY" statement incorrectly

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10 any version of Java -e.g. latest builds of 1.8 and earlier versions

      A DESCRIPTION OF THE PROBLEM :
      Java is always sending traffic to "zsglbzen1" and not processing the rest of the PAC file. The line concerned is setting a variable, not returning a proxy. The PAC file works fine with IE, Chrome, Edge etc.

      function FindProxyForURL(url, host) {
                  var privateIP = /^(https?|ftp):\/\/(0|10|127|192\.168|172\.1[6789]|172\.2[0-9]|172\.3[01]|169\.254|192\.88\.99)\.[0-9.]+$/;
      var glbzen1 = "PROXY zsglbzen1:80";

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Add a variable declaration to PAC file as per description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Java shouldn't stop processing a PAC file on a variable declaration that happens to contain a PROXY statement

      CUSTOMER SUBMITTED WORKAROUND :
      Re-work PAC file to use variables differently

      FREQUENCY : always


      Attachments

        Activity

          People

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: