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

8339560: Unaddressed comments during code review of JDK-8337664 #626

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jerboaa
Copy link
Contributor

@jerboaa jerboaa commented Feb 24, 2025

I'm backporting this test-only refactoring so that future distrust changes are easier to apply. In particular, this backport eases backporting JDK-8346587. The patch was mostly done by hand as it didn't apply cleanly.

Notable changes:

  • /test/lib => /lib/security test library changes
  • Manual renames of cert chains due to changed paths in JDK 8u
  • Applied hunks manually to Distrust.java (rename from Entrust/Distrust.java as well).

Testing:

  • Tests in sun/security/ssl/X509TrustManagerImpl

Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8339560 needs maintainer approval

Issue

  • JDK-8339560: Unaddressed comments during code review of JDK-8337664 (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/626/head:pull/626
$ git checkout pull/626

Update a local copy of the PR:
$ git checkout pull/626
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/626/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 626

View PR using the GUI difftool:
$ git pr show -t 626

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/626.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 24, 2025

👋 Welcome back sgehwolf! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Feb 24, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport 52c8606db4e81b9aa9c55a31e5f401e5e835c714 8339560: Unaddressed comments during code review of JDK-8337664 Feb 24, 2025
@openjdk
Copy link

openjdk bot commented Feb 24, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Feb 24, 2025
@jerboaa
Copy link
Contributor Author

jerboaa commented Feb 24, 2025

Passed: sun/security/ssl/X509TrustManagerImpl/distrust/Entrust.java
Passed: sun/security/ssl/X509TrustManagerImpl/distrust/Symantec.java
Passed: sun/security/ssl/X509TrustManagerImpl/BasicConstraints.java
Passed: sun/security/ssl/X509TrustManagerImpl/CacertsLimit.java
Passed: sun/security/ssl/X509TrustManagerImpl/CertRequestOverflow.java
Passed: sun/security/ssl/X509TrustManagerImpl/CheckNullEntity.java
Passed: sun/security/ssl/X509TrustManagerImpl/ClientServer.java
Passed: sun/security/ssl/X509TrustManagerImpl/ComodoHacker.java
Passed: sun/security/ssl/X509TrustManagerImpl/PKIXExtendedTM.java
Passed: sun/security/ssl/X509TrustManagerImpl/SelfIssuedCert.java
Passed: sun/security/ssl/X509TrustManagerImpl/SunX509ExtendedTM.java
Passed: sun/security/ssl/X509TrustManagerImpl/TooManyCAs.java
Passed: sun/security/ssl/X509TrustManagerImpl/X509ExtendedTMEnabled.java
Test results: passed: 13

@franferrax @martinuy Could you please help review this, thanks!

@mlbridge
Copy link

mlbridge bot commented Feb 24, 2025

Webrevs

@jerboaa
Copy link
Contributor Author

jerboaa commented Feb 25, 2025

GHA failures are the known certificate issues. Linux x86 is a known intermittent failure (gc/concurrentMarkSweep/SystemGCOnForegroundCollector.java. MacOSX x64 are known problems as well (I think). Definitely all have nothing to do with this patch.

@zzambers
Copy link
Contributor

MacOSX x64 are known problems as well (I think). Definitely all have nothing to do with this patch.

True, Mac failures are addressed by:
#580 (integrated)
#553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants