Skip to content

Match the shipped bouncyCastle jars in the OCSP/CRL class loader - #126

Merged
isudana merged 1 commit into
apache:masterfrom
ThisaraWeerakoon:fix/nhttp-bouncycastle-classloader-filter
Nov 12, 2026
Merged

isudana merged 1 commit into
apache:masterfrom
ThisaraWeerakoon:fix/nhttp-bouncycastle-classloader-filter

Conversation

@ThisaraWeerakoon

Copy link
Copy Markdown
Contributor

ParentLastClassLoader isolates the OCSP/CRL feature's bouncyCastle classes from the older copy Rampart brings in transitively, but it selects the jars by the exact name bcprov-jdk15on-1.49.jar, which has not shipped since the 1.70 pin — so it matches nothing today, and bcpkix/bcutil were never named at all.

The filter now matches the shipped bcprov/bcpkix/bcutil jars at any version while still excluding the legacy bcprov-jdk15 naming, and since the loader is actually used again, each jar is opened once and read buffered rather than reopened and read a byte at a time per class.

@isudana
isudana merged commit 9ca8b38 into apache:master Nov 12, 2026
1 check passed
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.

2 participants