Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11846

TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: build, security
    • Labels:
      None
    • Environment:

      Java 8

      Description

      Jenkins is failing on TestCertificateUtil.testCorruptPEM

        Issue Links

          Activity

          Hide
          stevel@apache.org Steve Loughran added a comment -
          Error Message
          
          Input byte array has wrong 4-byte ending unit
          Stacktrace
          
          java.lang.IllegalArgumentException: Input byte array has wrong 4-byte ending unit
          	at java.util.Base64$Decoder.decode0(Base64.java:704)
          	at java.util.Base64$Decoder.decode(Base64.java:526)
          	at java.util.Base64$Decoder.decode(Base64.java:549)
          	at sun.security.provider.X509Factory.readOneBlock(X509Factory.java:578)
          	at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:93)
          	at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
          	at org.apache.hadoop.security.authentication.util.CertificateUtil.parseRSAPublicKey(CertificateUtil.java:49)
          	at org.apache.hadoop.security.authentication.util.TestCertificateUtil.testCorruptPEM(TestCertificateUtil.java:67)
          
          Show
          stevel@apache.org Steve Loughran added a comment - Error Message Input byte array has wrong 4- byte ending unit Stacktrace java.lang.IllegalArgumentException: Input byte array has wrong 4- byte ending unit at java.util.Base64$Decoder.decode0(Base64.java:704) at java.util.Base64$Decoder.decode(Base64.java:526) at java.util.Base64$Decoder.decode(Base64.java:549) at sun.security.provider.X509Factory.readOneBlock(X509Factory.java:578) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:93) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339) at org.apache.hadoop.security.authentication.util.CertificateUtil.parseRSAPublicKey(CertificateUtil.java:49) at org.apache.hadoop.security.authentication.util.TestCertificateUtil.testCorruptPEM(TestCertificateUtil.java:67)
          Hide
          stevel@apache.org Steve Loughran added a comment -

          Test class is new in HADOOP-11717

          Show
          stevel@apache.org Steve Loughran added a comment - Test class is new in HADOOP-11717
          Hide
          stevel@apache.org Steve Loughran added a comment -

          assigning to Larry McCay as its apparently his code....

          Show
          stevel@apache.org Steve Loughran added a comment - assigning to Larry McCay as its apparently his code....
          Hide
          lmccay Larry McCay added a comment -

          Thanks Steve Loughran - I'll take a look!

          Show
          lmccay Larry McCay added a comment - Thanks Steve Loughran - I'll take a look!
          Hide
          lmccay Larry McCay added a comment -

          Patch to address the mismatch in base64 decoding between java 8 and earlier implementations. Tested in both java 7 and 8.

          Show
          lmccay Larry McCay added a comment - Patch to address the mismatch in base64 decoding between java 8 and earlier implementations. Tested in both java 7 and 8.
          Hide
          hadoopqa Hadoop QA added a comment -

          +1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12726366/HADOOP-11846-1.patch
          against trunk revision f47a576.

          +1 @author. The patch does not contain any @author tags.

          +1 tests included. The patch appears to include 1 new or modified test files.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 javadoc. There were no new javadoc warning messages.

          +1 eclipse:eclipse. The patch built with eclipse:eclipse.

          +1 findbugs. The patch does not introduce any new Findbugs (version 2.0.3) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed unit tests in hadoop-common-project/hadoop-auth.

          Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/6121//testReport/
          Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/6121//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12726366/HADOOP-11846-1.patch against trunk revision f47a576. +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 1 new or modified test files. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . There were no new javadoc warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 2.0.3) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-common-project/hadoop-auth. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/6121//testReport/ Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/6121//console This message is automatically generated.
          Hide
          lmccay Larry McCay added a comment -

          Steve Loughran - can you get this committed?
          Thanks!

          Show
          lmccay Larry McCay added a comment - Steve Loughran - can you get this committed? Thanks!
          Hide
          stevel@apache.org Steve Loughran added a comment -

          ...after I review it...

          Show
          stevel@apache.org Steve Loughran added a comment - ...after I review it...
          Hide
          lmccay Larry McCay added a comment -

          Of course!
          Thanks.

          Show
          lmccay Larry McCay added a comment - Of course! Thanks.
          Hide
          stevel@apache.org Steve Loughran added a comment -

          +1, applied!

          Show
          stevel@apache.org Steve Loughran added a comment - +1, applied!
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-trunk-Commit #7629 (See https://builds.apache.org/job/Hadoop-trunk-Commit/7629/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #7629 (See https://builds.apache.org/job/Hadoop-trunk-Commit/7629/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          lmccay Larry McCay added a comment -

          Thanks, Steve!

          Show
          lmccay Larry McCay added a comment - Thanks, Steve!
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #2103 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2103/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2103 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2103/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #162 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/162/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #162 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/162/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #171 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/171/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #171 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/171/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Yarn-trunk #905 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/905/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk #905 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/905/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #172 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/172/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #172 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/172/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #2121 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2121/)
          HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169)

          • hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2121 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2121/ ) HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8. (Larry McCay via stevel) (stevel: rev 2c1469036863c593a1bcba68f7c68b46f2a8e169) hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/TestCertificateUtil.java hadoop-common-project/hadoop-common/CHANGES.txt

            People

            • Assignee:
              lmccay Larry McCay
              Reporter:
              stevel@apache.org Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development