Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8175072

[openjdk6] Kerberos JCK tests fail on systems without krb5.conf file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • OpenJDK6
    • security-libs
    • None

      Kerberos JCK tests fail on systems without krb5.conf configuration file.

      The cause of this failure is “improper” backport for 6857795 to jdk6

      Compare backport for jdk7u - http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/1df67a3ecce8#l1.22

      where IOException is swallowed and added comment:
      " // No krb5.conf, no problem. We'll use DNS etc. "

      and backport for jdk6 - http://hg.openjdk.java.net/jdk6/jdk6/jdk/rev/5a766226c372#l1.22

      where the code always throws exception if configuration file is missing

      Affected tests

      api/javax_security/auth/kerberos/KerberosKey/index.html#Ctor1Tests
      api/javax_security/auth/kerberos/KerberosKey/index.html#Ctor2Tests
      api/javax_security/auth/kerberos/KerberosPrincipal/index.html#Ctor1Tests
      api/javax_security/auth/kerberos/KerberosPrincipal/index.html#Ctor2Tests
      api/javax_security/auth/kerberos/KerberosTicket/index.html#CtorTests
      api/javax_security/auth/kerberos/KerberosTicket/index.html#dateTests
      api/javax_security/auth/kerberos/KerberosTicket/index.html#destroyTests
      api/javax_security/auth/kerberos/KerberosTicket/index.html#flagsTests
      api/javax_security/auth/kerberos/KerberosTicket/index.html#refreshTests
      api/javax_security/auth/kerberos/KerberosTicket/index1.html#newEqualsHashCodeTests

            dcherepanov Dmitry Cherepanov
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: