You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Rodrigo Trujillo (JIRA)" <ji...@apache.org> on 2012/12/19 19:37:12 UTC

[jira] [Updated] (AVRO-1221) Avro 1.7.2 IPC REALM test fails with IBM Javas

     [ https://issues.apache.org/jira/browse/AVRO-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodrigo Trujillo updated AVRO-1221:
-----------------------------------

    Fix Version/s: 1.7.2
           Status: Patch Available  (was: Open)

diff -Nur avro-src-1.7.2.orig/lang/java/ipc/src/test/java/org/apache/avro/ipc/TestSaslDigestMd5.java avro-src-1.7.2/lang/java/ipc/src/test/java/org/apache/avro/ipc/TestSaslDigestMd5.java
--- avro-src-1.7.2.orig/lang/java/ipc/src/test/java/org/apache/avro/ipc/TestSaslDigestMd5.java	2011-06-02 08:41:48.000000000 -0300
+++ avro-src-1.7.2/lang/java/ipc/src/test/java/org/apache/avro/ipc/TestSaslDigestMd5.java	2012-12-17 13:13:15.003270164 -0200
@@ -64,7 +64,11 @@
 
   static {
     DIGEST_MD5_PROPS.put(Sasl.QOP, "auth-int");
-    DIGEST_MD5_PROPS.put("com.sun.security.sasl.digest.realm", REALM);
+    if (System.getProperty("java.vendor").contains("IBM")) {
+      DIGEST_MD5_PROPS.put("com.ibm.security.sasl.digest.realm", REALM);
+    } else {
+      DIGEST_MD5_PROPS.put("com.sun.security.sasl.digest.realm", REALM);
+    }
   }
 
   private static class TestSaslCallbackHandler implements CallbackHandler {
                
> Avro 1.7.2 IPC REALM test fails with IBM Javas
> ----------------------------------------------
>
>                 Key: AVRO-1221
>                 URL: https://issues.apache.org/jira/browse/AVRO-1221
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.2
>         Environment: 64 bits
> Red Hat Enterprise Linux Server release 6.3 (Santiago)
> IBM Java 1.6.0 (SR11) or IBM Java 1.7.0
> Maven 3.0.3
>            Reporter: Rodrigo Trujillo
>             Fix For: 1.7.2
>
>
> 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".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira