# HG changeset patch # User mullan # Date 1258565666 18000 # Node ID fdcb5ce9dc0060d65333171f09d3b9b2fba2c426 # Parent 7d4f50f3806ce121ecc586a472dedebf89dca553 6894461: OCSP Checker should not wrap all Exception as "Unable to send OCSP request."(introduced by #6885667) Reviewed-by: vinnie, xuelei diff -r 7d4f50f3806c -r fdcb5ce9dc00 jdk/src/share/classes/sun/security/provider/certpath/OCSPChecker.java --- a/jdk/src/share/classes/sun/security/provider/certpath/OCSPChecker.java Tue Nov 17 09:44:43 2009 +0000 +++ b/jdk/src/share/classes/sun/security/provider/certpath/OCSPChecker.java Wed Nov 18 12:34:26 2009 -0500 @@ -335,10 +335,13 @@ response = OCSP.check(Collections.singletonList(certId), uri, responderCert, pkixParams.getDate()); } catch (Exception e) { - // Wrap all exceptions in CertPathValidatorException so that - // we can fallback to CRLs, if enabled. - throw new CertPathValidatorException - ("Unable to send OCSP request", e); + if (e instanceof CertPathValidatorException) { + throw (CertPathValidatorException) e; + } else { + // Wrap exceptions in CertPathValidatorException so that + // we can fallback to CRLs, if enabled. + throw new CertPathValidatorException(e); + } } RevocationStatus rs = (RevocationStatus) response.getSingleResponse(certId);