United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7194472 FileKeyTab.java test fails on Windows
JDK-7194472 : FileKeyTab.java test fails on Windows

Details
Type:
Bug
Submit Date:
2012-08-28
Status:
Closed
Updated Date:
2012-10-19
Project Name:
JDK
Resolved Date:
2012-09-05
Component:
security-libs
OS:
generic
Sub-Component:
java.security
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

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

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

http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fe496675b5e7
                                     
2012-08-28
It have passed on  :
win64: http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=112185.CORELIBS-JDK8-NIGHTLY-JTREG-14
win32: http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=112192.CORELIBS-JDK8-NIGHTLY-JTREG-14
                                     
2012-10-19



Hardware and Software, Engineered to Work Together