JDK-7194472 : FileKeyTab.java test fails on Windows
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-28
  • Updated: 2013-09-12
  • Resolved: 2012-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b55Fixed
Related Reports
Relates :  
Description
The newly added FileKeyTab.java test fails on Windows because it creates a file

  server {
    com.sun.security.auth.module.Krb5LoginModule required
    principal="server/host.rabbit.hole"
    debug=true useKeyTab=true
    keyTab="file:C:\tmp\RR1\W\scratch\localkdc.ktab"
    storeKey=true;
  };

Here the keyTab line is illegal before JAAS config file is parsed with a StreamTokenizer and "\" is treated as a escape char.

Comments
EVALUATION http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fe496675b5e7
28-08-2012

EVALUATION Replace all "\" to "/". ConfigFile recognizes "/" as File.separatorChar on all platforms.
28-08-2012