JDK-4969676 : 2 JCK1.5-runtime api/javax_security/sasl/Sasl tests fail
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-12-17
  • Updated: 2003-12-17
  • Resolved: 2003-12-17
Related Reports
Duplicate :  
Description

Name: iaR10016			Date: 12/16/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b31
                  (passes with JDK1.5.0-b30,
                   this is a new test which is not valid for JDK1.4.2)
JCK            : JCK1.5-runtime (b09)
Platform[s]    : all
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling tests  :
         api/javax_security/sasl/Sasl/index.html#ServerTests [ServerTest004]
         api/javax_security/sasl/Sasl/index.html#ClientTests [ClientTest012, ClientTest014]

2 JCK1.5-runtime (b09) tests fail using JDK1.5.0-b31 on all platforms with "Sasl implementation
did not pass up exception" error message.

Test source location:
=====================
/java/re/jck/1.5/promoted/beta/b09/binaries/JCK-runtime-15/tests/api/javax_security/sasl/Sasl/ServerTests.java
/java/re/jck/1.5/promoted/beta/b09/binaries/JCK-runtime-15/tests/api/javax_security/sasl/Sasl/ClientTests.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b31/jck15/x86/sol10_x86_cde_server_linux-18_last1/workDir/api/javax_security/sasl/Sasl/index_ServerTests.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b31/jck15/x86/sol10_x86_cde_server_linux-18_last1/workDir/api/javax_security/sasl/Sasl/index_ClientTests.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables):
--- script start ---
#!/bin/bash

#Paths in Java Software:
JDK="/java/re/jdk/1.5.0/promoted/all/b31/binaries/solaris-i586"
JCK="/java/re/jck/1.5/promoted/beta/b09/binaries/JCK-runtime-15"

#Alternative paths outside Java Software:
#JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b31/binaries/solaris-i586"
#JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta/b08/binaries/JCK-runtime-15"

export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"

$JDK/bin/java -showversion javasoft.sqe.tests.api.javax.security.sasl.Sasl.ServerTests -TestCaseID ServerTest004
#$JDK/bin/java javasoft.sqe.tests.api.javax.security.sasl.Sasl.ClientTests -TestCaseID ClientTest012 ClientTest014
--- script end ---

Test output:
============
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)

ServerTest004: Failed. EXCEPTION_MECHANISM Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=empty; callbackHandler=null; JCA 
provider=TCK SaslServerFactory[] Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=null; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory,SaslServerFactory.NULL2=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=empty; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory,SaslServerFactory.NULL2=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=null; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory,SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL2=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=empty; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory,SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL2=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=null; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory,SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL2=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=empty; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory,SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL2=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.one.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=null; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=empty; callbackHandler=null; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory]
...
.sasl.Sasl.BasicCallbackHandler@18fb1f7; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory] 
Sasl implementation did not pass up exception as expected.mechanism=[BAR]; protocol=imap; serverName=linux-12; props=empty; 
callbackHandler=javasoft.sqe.tests.api.javax.security.sasl.Sasl.BasicCallbackHandler@18fb1f7; JCA provider=TCK 
SaslServerFactory[SaslServerFactory.NULL4=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory,SaslServerFactory.NULL3=javasoft.sqe.tests.api.javax.security.sasl.Sasl.factory.two.ServerFactory]
STATUS:Failed.test cases: 1; all failed; first test case failure: ServerTest004

Specific machine info:
======================
Hostname: linux-18
OS: Solaris 10 (x86) (CDE)
Hostname: linux-2
OS: Suse Linux 8.2 (GNOME2)
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)

======================================================================

Comments
EVALUATION Some changes were made to java.security.Provider in b31 and this is apparently causing the new failures. More changes were made to java.security.Provider in b32 and this appears to have rectified the problem. The JCK passes with b32. Closing this as a duplicate of 4918769. ###@###.### 2003-12-17 Backing out the following 4963416 : PIT: Can not remove "SunPKCS11-Solaris" provider on Solaris 10 from b32 can reproduce the problem. Looks like might be a duplicate of 4963416 instead. ###@###.### 2003-12-17
17-12-2003