Joe Witt created NIFI-14189:
-------------------------------
Summary: Upgrade to Bouncycastle 1.80
Key: NIFI-14189
URL: https://issues.apache.org/jira/browse/NIFI-14189
Project: Apache NiFi
Issue Type: Task
Reporter: Joe Witt
Bouncycastle from 1.79 to 1.80 -
https://www.bouncycastle.org/download/bouncy-castle-java/?filter=java%3Drelease-1-80
In NIFI-14187 Pierre attempted to update BC libs. It caused the following
failures
https://github.com/apache/nifi/actions/runs/12916540903/job/36020943639?pr=9658
{noformat}
Error: Failures:
Error:
DecryptContentPGPTest.testFailurePasswordBasedEncryptionPassphraseNotMatched:174->assertFailureExceptionLogged:423
expected: <true> but was: <false>
Error: Errors:
Error:
DecryptContentPGPTest.testSuccessPasswordBasedIntegrityEnabledCamellia128:228->getPasswordBasedEncryptedData:441->getEncryptedData:474
» PGP cannot create cipher: Cannot find any provider supporting
Camellia/CFB/NoPadding
Error:
DecryptContentPGPTest.testSuccessPasswordBasedIntegrityEnabledCast5:252->getPasswordBasedEncryptedData:441->getEncryptedData:474
» PGP cannot create cipher: Cannot find any provider supporting
CAST5/CFB/NoPadding
Error: Tests run: 43, Failures: 1, Errors: 2, Skipped: 0
Error: Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:3.5.1:test (default-test) on
project nifi-pgp-processors: There are test failures.
Error:
Error: Please refer to
/home/runner/work/nifi/nifi/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-processors/target/surefire-reports
for the individual test results.
Error: Please refer to dump files (if any exist) [date].dump,
[date]-jvmRun[N].dump and [date].dumpstream.
{noformat}
{noformat}
Error:
org.apache.nifi.processors.pgp.DecryptContentPGPTest.testFailurePasswordBasedEncryptionPassphraseNotMatched
-- Time elapsed: 0.006 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183)
at
org.apache.nifi.processors.pgp.DecryptContentPGPTest.assertFailureExceptionLogged(DecryptContentPGPTest.java:423)
at
org.apache.nifi.processors.pgp.DecryptContentPGPTest.testFailurePasswordBasedEncryptionPassphraseNotMatched(DecryptContentPGPTest.java:174)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
{noformat}
{noformat}
Error:
org.apache.nifi.processors.pgp.DecryptContentPGPTest.testSuccessPasswordBasedIntegrityEnabledCamellia128
-- Time elapsed: 0.005 s <<< ERROR!
org.bouncycastle.openpgp.PGPException: cannot create cipher: Cannot find any
provider supporting Camellia/CFB/NoPadding
at
org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createCipher(Unknown
Source)
at
org.bouncycastle.openpgp.operator.jcajce.JcePBEKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
Source)
at
org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator.generate(Unknown
Source)
at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown
Source)
at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown
Source)
at
org.apache.nifi.processors.pgp.DecryptContentPGPTest.getEncryptedData(DecryptContentPGPTest.java:474)
at
org.apache.nifi.processors.pgp.DecryptContentPGPTest.getPasswordBasedEncryptedData(DecryptContentPGPTest.java:441)
at
org.apache.nifi.processors.pgp.DecryptContentPGPTest.testSuccessPasswordBasedIntegrityEnabledCamellia128(DecryptContentPGPTest.java:228)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider
supporting Camellia/CFB/NoPadding
at java.base/javax.crypto.Cipher.getInstance(Cipher.java:574)
at
org.bouncycastle.jcajce.util.DefaultJcaJceHelper.createCipher(Unknown Source)
... 11 more
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)