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

proxy.pac fails to parse configuration if a regular expression is defined which ends with a slash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 6u12
    • Fix Version/s: 7
    • Component/s: deploy
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Backports

        Description

        Java Plugin 1.6.0_12 .pac file regex on Windows XP

        The following works fine in IE when the plugin is not involved. When the Java Plugin 1.6.0u12 parses the .pac file, it fails.

        The Java Plug-in fails to parse an automatic proxy configuration script if a regular expression is defined which ends with a slash.
        (environment: Windows XP, Java 6.0 update12)

        To reproduce:
        - Define in the browser settings an automatic proxy configuration script which contains the following code:
           var regex = /a.*\//
           if (regex.test("a1/")) {
             return "PROXY host1:80";
           }
           return "PROXY host2:80";
        - Configure the Java Plug-in to use the browser settings (as network settings)
        - Try to download an HTML page which includes an applet.
        - The Java console shows:
        network: Unable to determine proxy setting from evaluation - fallback to DIRECT
        - If the regular expression does not end with a slash, the problem does not occur, for example:
        var regex = /a.*/

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: