JDK-8050033 : (smartcardio) 7 JSCIO-TCK tests fail
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.smartcardio
  • Affected Version: 6,7,8
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux,windows
  • CPU: generic
  • Submitted: 2014-07-11
  • Updated: 2017-11-23
  • Resolved: 2017-11-23
Related Reports
Relates :  
Description
Testsuite name: JSCIO-TCK-1.0
Test(s) name:
  api/javax_smartcardio/Card/index.html#Exceptions
  api/javax_smartcardio/CardChannel/index.html#Exceptions
  api/javax_smartcardio/CardChannel/index.html#Methods
  api/javax_smartcardio/CardTerminal/index.html#Exceptions
  api/javax_smartcardio/CardTerminal/index.html#Methods
  api/javax_smartcardio/CardTerminals/index.html#Exceptions
  api/javax_smartcardio/CardTerminals/index.html#Methods

Product(s) tested: jdk6u81b07, jdk7u80b01, jdk8u20b21

OS/architecture: Linux, Windows

Reproducible: Always, if the card reader driver is installed and the card reader is not attached 
Reproducible on machine: stt-133, fx-sqe17, and Win7 and Ubuntu laptops

Is it a Regression: No

Is it a platform specific issue: Not sure, these tests pass on MacOS X under the same conditions

All tests fail with message like this:
  Failed. Unexpected CardException:javax.smartcardio.CardException: list() failed

Test run log location:
  http://stt-13.ru.oracle.com/results/SmartCard/jdk1.6.0_81b07/linux-amd64/results_cardreader_not_available/reportDir/failed.html
  http://stt-13.ru.oracle.com/results/SmartCard/jdk1.7.0_80b01/linux-amd64/results_cardreader_not_available/reportDir/failed.html
  http://stt-13.ru.oracle.com/results/SmartCard/jdk1.8.0_20b21/linux-amd64/results_cardreader_not_available/reportDir/failed.html

Steps to reproduce:
  - login on a host
  - install jdk
  - cd /net/stt-13.ru.oracle.com/export/home0/results/SmartCard/jdk1.8.0_20b21/linux-amd64/results_cardreader_not_available_test
  - sh jscio_tck.sh 
Comments
Closing this old issue, as it's not clear what to fix here. Please feel free to reopen if required.
21-11-2017

Yes, I'm sure, it's stt-mac-12. Please see work dir: /net/stt-13/export/home0/results/SmartCard/jdk1.8.0_20b21/macosx-amd64/results_cardreader_not_available_test
15-07-2014

Not sure what to fix here. Should the smartcardio code throw if the drivers aren't present? > these tests pass on MacOS X under the same conditions Are you certain the machine has the drivers installed?
14-07-2014

Ivan, would you be able to take a look at this?
14-07-2014

There is no tck-reg lable because the configuration is being considered not valid.
11-07-2014

These tests always fail on Windows 64bit/32bit and Linux 64bit/32bit with javax.smartcardio.CardException: list() failed when the driver is already installed and terminal (card reader) is not attached. There is no clear basis for throwing the javax.smartcardio.CardException in the spec if the terminal is just not attached http://stt-13.ru.oracle.com/results/SmartCard/jscio-4_0-fr-spec/spec/javax/smartcardio/CardTerminals.html#list%28%29 But tests tests successfully pass if the driver has not been installed.
11-07-2014