From 0e25952d40fdbe7655b9bae5d91727078ab3deca Mon Sep 17 00:00:00 2001 From: Anmol Sundaram Date: Thu, 27 Apr 2023 15:39:12 +0530 Subject: [PATCH] TEZ-4492 : Disable strict-ssl for Bower Registry CERT_EXPIRE issue ( BOWER-2608) After the recent Bower certificate renewal, Tez RPM build is failing because of ****************** [INFO] bower more-js#0.8.8 CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/more-js failed: certificate has expired ****************** A workaround is to disable strict-ssl in bowerrc . We need to disable it for .yarnrc as well, otherwise the build was leading to a different error : ****************** error An unexpected error occurred: "https://registry.yarnpkg.com/boom/-/boom-7.3.0.tgz: unable to get local issuer certificate". ****************** --- tez-ui/src/main/webapp/.bowerrc | 1 + tez-ui/src/main/webapp/.yarnrc | 1 + 2 files changed, 2 insertions(+) create mode 100644 tez-ui/src/main/webapp/.yarnrc diff --git a/tez-ui/src/main/webapp/.bowerrc b/tez-ui/src/main/webapp/.bowerrc index 5b0b07d756..987cbd672e 100644 --- a/tez-ui/src/main/webapp/.bowerrc +++ b/tez-ui/src/main/webapp/.bowerrc @@ -1,6 +1,7 @@ { "directory": "bower_components", "analytics": false, + "strict-ssl": false, "resolvers": [ "bower-shrinkwrap-resolver-ext" ] diff --git a/tez-ui/src/main/webapp/.yarnrc b/tez-ui/src/main/webapp/.yarnrc new file mode 100644 index 0000000000..908ddab24b --- /dev/null +++ b/tez-ui/src/main/webapp/.yarnrc @@ -0,0 +1 @@ +strict-ssl false