JDK-8223727 : com/sun/jndi/ldap/privconn/RunTest.java failed due to hang in LdapRequest.getReplyBer
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-05-10
  • Updated: 2022-06-27
  • Resolved: 2019-06-20
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 11 JDK 13 JDK 14
11.0.7Fixed 13.0.4Fixed 14 b03Fixed
Related Reports
Relates :  
Relates :  
Description
The following closed test failed in the JDK13 CI:

com/sun/jndi/ldap/privconn/RunTest.java

Here's a snippet of the log file:

----------System.out:(25/1615)----------
Adding Main.class to main.jar

Adding Core.class to core.jar

Adding MySocketFactory$MySocket.class to factory.jar
Adding MySocketFactory.class to factory.jar
Adding MySocketFactory$MyFilterInputStream.class to factory.jar

Adding MySecuritymanager.class to sm.jar

Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-13-1006/linux-x64.jdk/jdk-13/bin/java -Xmx512m -XX:MaxRAMPercentage=6 -ea -esa --add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED -Xbootclasspath/a:sm.jar -Djava.security.manager=MySecuritymanager -Djava.security.policy=my.policy -cp main.jar:core.jar:factory.jar Main]
Caught: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "bad" "read")
Caught: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
Caught: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "evil" "read")
Caught: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
Exception in thread "Thread-0" java.lang.RuntimeException: BadAttributeValueException: 
	at MySocketFactory$MyFilterInputStream.read(MySocketFactory.java:74)
	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
	at java.naming/com.sun.jndi.ldap.Connection.run(Connection.java:793)
	at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: BadAttributeValueException: 
	... 6 more

result: Error. Agent error: java.lang.Exception: Agent 3 timed out with a timeout of 480 seconds; check console log for any additional details


test result: Error. Agent error: java.lang.Exception: Agent 3 timed out with a timeout of 480 seconds; check console log for any additional details

Comments
Fix request (13u): the change applies cleanly, related tests available in openjdk repo pass fine with the applied fix.
14-05-2020

Fix Request This check is also missing in jdk11u. Fix is simple and applies cleanly. Related change was also backported.
20-03-2020

URL: http://hg.openjdk.java.net/jdk/jdk/rev/d3030613fab9 User: robm Date: 2019-06-20 20:20:17 +0000
20-06-2019