Hadoop Common
  1. Hadoop Common
  2. HADOOP-10847

Remove the usage of sun.security.x509.* in testing code

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As was told by Max (Oracle), JDK9 is likely to block all accesses to sun.* classes.

      Below is from email of Andrew Purtell:

      The use of sun.* APIs to create a certificate in Hadoop and HBase test code can be removed. Someone (Intel? Oracle?) can submit a JIRA that replaces the programmatic construction with a stringified binary cert for use in the relevant unit tests.

      In Hadoop, the calls in question are below:

      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:24:import sun.security.x509.CertificateIssuerName;
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:25:import sun.security.x509.CertificateSerialNumber;
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:26:import sun.security.x509.CertificateSubjectName;
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:27:import sun.security.x509.CertificateValidity;
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:28:import sun.security.x509.CertificateVersion;
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:29:import sun.security.x509.CertificateX509Key;
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:30:import sun.security.x509.X500Name; 
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:31:import sun.security.x509.X509CertImpl; 
      hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:32:import sun.security.x509.X509CertInfo;
      
      1. HADOOP-10847-addendum.patch
        3 kB
        Robert Kanter
      2. HADOOP-10847-3.patch
        6 kB
        pascal oliva
      3. HADOOP-10847-2.patch
        5 kB
        pascal oliva
      4. HADOOP-10847-1.patch
        5 kB
        pascal oliva

        Issue Links

          Activity

          Steve Loughran made changes -
          Link This issue is related to HADOOP-12300 [ HADOOP-12300 ]
          Vinod Kumar Vavilapalli made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Robert Kanter made changes -
          Link This issue relates to HADOOP-11090 [ HADOOP-11090 ]
          Robert Kanter made changes -
          Link This issue is related to HADOOP-11230 [ HADOOP-11230 ]
          Robert Kanter made changes -
          Attachment HADOOP-10847-addendum.patch [ 12679306 ]
          Haohui Mai made changes -
          Affects Version/s 3.0.0 [ 12320357 ]
          Haohui Mai made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 2.7.0 [ 12327583 ]
          Resolution Fixed [ 1 ]
          Haohui Mai made changes -
          Summary Retire the usage of sun.security.x509.* in testing code Remove the usage of sun.security.x509.* in testing code
          Haohui Mai made changes -
          Summary Cleanup calling of sun.security.x509 Retire the usage of sun.security.x509.* in testing code
          Haohui Mai made changes -
          Assignee pascal oliva [ poliva ]
          pascal oliva made changes -
          Attachment HADOOP-10847-3.patch [ 12679188 ]
          pascal oliva made changes -
          Attachment HADOOP-10847-2.patch [ 12678915 ]
          Larry McCay made changes -
          Link This issue is related to KNOX-422 [ KNOX-422 ]
          pascal oliva made changes -
          Attachment HADOOP-10847-1.patch [ 12659153 ]
          pascal oliva made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 3.0.0 [ 12320357 ]
          Kai Zheng made changes -
          Field Original Value New Value
          Link This issue relates to HADOOP-10848 [ HADOOP-10848 ]
          Kai Zheng created issue -

            People

            • Assignee:
              pascal oliva
              Reporter:
              Kai Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development