JDK-8007528 : Jre 1.6.0_34 or higher can not read proxy.pac normally
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u34
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-02-05
  • Updated: 2014-11-17
  • Resolved: 2013-02-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u60Fixed 7u21Fixed 8 b77Fixed
Description
 
SHORT SUMMARY:

RemoveCommentReader will not parse "/** ... **/" comments correctly.
 
INDICATORS:

proxy.pac files that contain "/** ... **/" comments correctly may not 
function as expected.
 
COUNTER INDICATORS:
 
none
 
TRIGGERS:
 
none
 
KNOWN WORKAROUND:

Replace all instances of "**/" with "*/" in proxy.pac file

PRESENT SINCE:
 
6u34
 
HOW TO VERIFY:

Testcase:

=== CommentParseFail.java 
// compile and run with <JRE_HOME>/lib/deploy.jar in CLASSPATH 

import java.io.BufferedReader; 
import java.io.FileReader; 

import com.sun.deploy.net.proxy.RemoveCommentReader; 

public class CommentParseFail { 

    public static void main(String[] args) throws Exception { 
        BufferedReader in = new BufferedReader(new RemoveCommentReader(new 
FileReader("CommentParseFail.java"))); 
        String line, lastLine = null; 
        while ((line = in.readLine()) != null) { 
            lastLine = line; 
        } 
        if (lastLine.indexOf(Dummy.token) == -1) { 
            throw new Exception("Dummy class missing after comments 
removed"); 
        } 
        in.close(); 
    } 
} 

/** this is a comment **/ 

class Dummy { static String token = "TokenString"; } 
===

NOTES FOR SE:
 
None
 
REGRESSION:
 
Yes
 
}


Comments
regression_test_src:http://sqe-hgi.us.oracle.com/hg/index.cgi/8/deployment_int_ws/file/52c9a6bb6653/new_framework/tests/common/autoproxy_detect/src/AutoproxyTest.java testProxyParsingWithCommentSymbol entry.
07-11-2013

Verified with jre8 b112
07-11-2013