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

inconsistency with PKCS#11 spec - 0-value flags in CK_SLOT_INFO struct returned by C_GetSlotInfo()

XMLWordPrintable

    • b27
    • generic, sparc
    • solaris, solaris_9
    • Not verified

        JCK tests verify that AuthProvider implementation throw LoginException if the login operation fails.
        sun.security.pkcs11.SunPKCS11.login throws NPE if null value passed to the method. This behaviour contradicts with the spec.

        /net/archer/export5/re/jck/6a/nightly/qac/b06-2007-02-08/binaries/JCK-runtime-6a/classes javasoft.sqe.tests.api.java.security.AuthProvider.loginTests
        ----------out1:(144/9497)----------
        Provider XMLDSig: Passed. Not AuthProvider. Skiped.
        Provider SUN: Passed. Not AuthProvider. Skiped.
        Provider SunJSSE: Passed. Not AuthProvider. Skiped.
        Provider SunPCSC: Passed. Not AuthProvider. Skiped.
        Provider SunJCE: Passed. Not AuthProvider. Skiped.
        Provider SunSASL: Passed. Not AuthProvider. Skiped.
        java.lang.NullPointerException
        at sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1049)
        at javasoft.sqe.tests.api.java.security.AuthProvider.loginTests$1.run(loginTests.java:84)
        at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithTCKSM(SecurityTestRunner.java:278)
        at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithPermissions(SecurityTestRunner.java:235)
        at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithAllPermissions(SecurityTestRunner.java:157)
        at javasoft.sqe.jck.lib.AllPermissionSM.testRun(AllPermissionSM.java:86)
        at javasoft.sqe.jck.lib.AllPermissionSM.testRun(AllPermissionSM.java:111)
        at javasoft.sqe.tests.api.java.security.AuthProvider.loginTests.login001(loginTests.java:94)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
        at javasoft.sqe.jck.lib.ProviderTest.invokeTestCase(ProviderTest.java:286)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd$Version2Test.execute(ExecJCKTestSameJVMCmd.java:461)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd$StandardTest.run(ExecJCKTestSameJVMCmd.java:373)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd.execute(ExecJCKTestSameJVMCmd.java:241)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd.run(ExecJCKTestSameJVMCmd.java:142)
        at com.sun.javatest.agent.Agent$Task.executeCommand(Agent.java:822)
        at com.sun.javatest.agent.Agent$Task.execute(Agent.java:753)
        at com.sun.javatest.agent.Agent$Task.handleRequest(Agent.java:614)
        at com.sun.javatest.agent.Agent.handleRequestsUntilClosed(Agent.java:381)
        at com.sun.javatest.agent.Agent.access$000(Agent.java:41)
        at com.sun.javatest.agent.Agent$1.run(Agent.java:253)
        at java.lang.Thread.run(Thread.java:619)
        login001: Failed. Test case throws exception: java.lang.NullPointerException
        Provider XMLDSig: Passed. Not AuthProvider. Skiped.
        Failed tests:
        api/java_security/AuthProvider/ProviderTests.html#login[login001]
        api/java_security/AuthProvider/ProviderTests.html#login[login002]
        api/java_security/AuthProvider/ProviderTests.html#login[login003]
        These tests failed only when running in Java plugin, the failure reproduced constantly.
        First of all, run tests in Java plugin is a standard feature of JavaTest. JavaTest UG desribes all neccesary steps!
        In addition, the failing tests can be run via JCK QA scripts:

        1. ssh moonblade.russia.sun.com
        2. mkdir -p /tmp/ProviderTests/tmp
        3. mkdir -p /tmp/ProviderTests/workdir
        4. mkdir -p /net/archer.russia.sun.com/export4/jck/tmp/ProviderTests/resultsdir
        5. export TEMP=/tmp/ProviderTests/tmp
        6. cd /net/archer.russia.sun.com/export4/jck/sqe-bin/QATools/bin
        7. ./qa_latest -tc p002 -tcsuff _ProviderTests -testtype promoted -mailto <e-mail_address> -iu api/java_security/AuthProvider/ProviderTests.html -display moonblade.russia.sun.com:0.0 -workdir /tmp/ProviderTests/workdir -resultsdir /net/archer.russia.sun.com/export4/jck/tmp/ProviderTests/resultsdir

              valeriep Valerie Peng
              rmakarch Roman Makarchuk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: