Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8296480: java/security/cert/pkix/policyChanges/TestPolicy.java is fai…
…ling

Reviewed-by: xuelei, mullan
  • Loading branch information
rhalade committed Nov 7, 2022
1 parent 3baad06 commit b6ea69c
Showing 1 changed file with 6 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -34,6 +34,7 @@
*/

import java.io.*;
import java.text.DateFormat;
import java.util.*;

import java.security.Security;
Expand Down Expand Up @@ -97,6 +98,10 @@ public static void main(String[] args) throws Exception {
params.setRevocationEnabled(false);
params.setInitialPolicies(testCase.initialPolicies);

// Certs expired on 7th Nov 2022
params.setDate(DateFormat.getDateInstance(DateFormat.MEDIUM,
Locale.US).parse("June 01, 2022"));

CertPath path = factory.generateCertPath(Arrays.asList(new X509Certificate[] {ee, ca}));

PKIXCertPathValidatorResult result = (PKIXCertPathValidatorResult)validator.validate(path, params);
Expand Down

5 comments on commit b6ea69c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on b6ea69c Nov 10, 2022

Choose a reason for hiding this comment

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

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on b6ea69c Nov 10, 2022

Choose a reason for hiding this comment

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

@GoeLin the backport was successfully created on the branch GoeLin-backport-b6ea69c0 in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit b6ea69c0 from the openjdk/jdk repository.

The commit being backported was authored by Rajan Halade on 7 Nov 2022 and was reviewed by Xue-Lei Andrew Fan and Sean Mullan.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-b6ea69c0:GoeLin-backport-b6ea69c0
$ git checkout GoeLin-backport-b6ea69c0
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-b6ea69c0

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on b6ea69c Nov 10, 2022

Choose a reason for hiding this comment

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

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on b6ea69c Nov 10, 2022

Choose a reason for hiding this comment

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

@GoeLin the backport was successfully created on the branch GoeLin-backport-b6ea69c0 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit b6ea69c0 from the openjdk/jdk repository.

The commit being backported was authored by Rajan Halade on 7 Nov 2022 and was reviewed by Xue-Lei Andrew Fan and Sean Mullan.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev GoeLin-backport-b6ea69c0:GoeLin-backport-b6ea69c0
$ git checkout GoeLin-backport-b6ea69c0
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev GoeLin-backport-b6ea69c0

Please sign in to comment.