Details
Description
I downloaded Avro stable version 1.7.2 and could build it successfully. But it fails when I try to run the tests with IBM Java. The tests build and compile flawlessly with Sun Java.
The failure is in IPC, in the test file: avro-src-1.7.2/lang/java/ipc/src/test/java/org/apache/avro/ipc/TestSaslDigestMd5.java
It occurs when the REALM is set:
DIGEST_MD5_PROPS.put("com.sun.security.sasl.digest.realm", REALM);
Maven return:
"""
Results :
Failed tests: testUndeclaredError(org.apache.avro.ipc.TestSaslDigestMd5)
Tests in error:
testAnonymousClient(org.apache.avro.ipc.TestSaslDigestMd5): Fail: javax.security.sasl.SaslException: DIGEST-MD5: digest response format violation. Nonexistent realm: avro-test-realm
testHello(org.apache.avro.ipc.TestSaslDigestMd5)
testEcho(org.apache.avro.ipc.TestSaslDigestMd5)
testEchoBytes(org.apache.avro.ipc.TestSaslDigestMd5)
testError(org.apache.avro.ipc.TestSaslDigestMd5)
org.apache.avro.ipc.TestSaslDigestMd5
Tests run: 287, Failures: 1, Errors: 6, Skipped: 4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Avro Java .................................. SUCCESS [3.554s]
[INFO] Apache Avro ....................................... SUCCESS [38.981s]
[INFO] Apache Avro Compiler .............................. SUCCESS [3.408s]
[INFO] Apache Avro Maven Plugin .......................... SUCCESS [3.420s]
[INFO] Apache Avro IPC ................................... FAILURE [1:46.459s]
[INFO] Trevni Java ....................................... SKIPPED
[INFO] Trevni Java Core .................................. SKIPPED
"""
I were able to fix this changing "sun" by "ibm".