Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update security properties for java_net for jdk 11+ #4085

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

Mesbah-Alam
Copy link
Contributor

@Mesbah-Alam Mesbah-Alam commented Oct 24, 2022

  • Updated security.properties based on proposed fix for openj9-openjdk-jdk11-zos/issues/1621 (RTC Problem Report 147986).
  • Added step to print out content of security.properties file if generated.
  • Note: This is not a z/OS specific fix. It apples to all platforms on 11/17.

FYI @JasonFengJ9

Signed-off-by: Mesbah Alam Mesbah_Alam@ca.ibm.com

@Mesbah-Alam
Copy link
Contributor Author

Mesbah-Alam commented Oct 24, 2022

Test with x64 Linux with java_util + java_net :

  • on jdk 11 : Grinder_JCK/755.
  • on jdk 17 : Grinder_JCK/751.
  • on jdk 19 : Grinder_JCK/750.

@Mesbah-Alam Mesbah-Alam marked this pull request as ready for review October 24, 2022 20:20
@@ -1220,7 +1243,7 @@ private static boolean testsRequireDisplay (String tests) {
private static String getTestSpecificJvmOptions(String jckVersion, String tests) {
String testSpecificJvmOptions = "";

if ( tests.contains("api/javax_net") || tests.contains("api/javax_xml") || (getJckVersionInt(jckVersionNo) >= 18 && (tests.contains("api/java_net") || tests.contains("api/java_util"))) ) {
if ( tests.contains("api/javax_net") || tests.contains("api/javax_xml") || tests.contains("api/java_net") || tests.contains("api/java_util") ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By removing getJckVersionInt(jckVersionNo) >= 18, we will set extra security.properties for all version. I thought we only want to set for JDK11+.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @llxia ! Yes, I've added the version check back, and changed the value to 11+.

@Mesbah-Alam Mesbah-Alam force-pushed the fix-Java_net-zos branch 3 times, most recently from fb31f4b to 79fdd25 Compare October 25, 2022 16:50

Verified

This commit was signed with the committer’s verified signature.
fabpot Fabien Potencier
Signed-off-by: Mesbah Alam <Mesbah_Alam@ca.ibm.com>
@Mesbah-Alam
Copy link
Contributor Author

This PR has been updated to include changes in #4059. Grinder links have been updated with latest tests. Please review.

@llxia
Copy link
Contributor

llxia commented Oct 27, 2022

Both Grinder_JCK/748 and Grinder_JCK/750 ran against JDK19. Please provide the Grinder link for JDK11. Thanks

@Mesbah-Alam
Copy link
Contributor Author

Re: #4085 (comment) - ah, too many grinder runs causing mix up! Here's a fresh run on 11: Grinder_JCK/755.

Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants