JDK-6689000 : Changes in 6675606 causing regression test failures on windows-i586.
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-04-15
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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
7 b27Fixed
Related Reports
Relates :  
Description
I am pretty sure the putback for 6675606 is causing these new regression test failures on windows only...

TEST: com/sun/security/auth/login/ConfigFile/EmptyOption.java
TEST: com/sun/security/auth/login/ConfigFile/InconsistentError.java
TEST: com/sun/security/auth/login/ConfigFile/InnerClassConfig.java
TEST: com/sun/security/auth/login/ConfigFile/Override.java
TEST: com/sun/security/auth/login/ConfigFile/PropertyExpansion.java
TEST: javax/security/auth/login/Configuration/Synchronize.java
TEST: javax/security/auth/login/LoginContext/ConfigConstructor.java
TEST: javax/security/auth/login/LoginContext/DefaultHandler.java
TEST: javax/security/auth/login/LoginContext/ModuleSubject.java
TEST: sun/security/util/Resources/Format.java

Here is a sample output error:

java.lang.SecurityException: URI is not hierarchical
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:110)
        at EmptyOption.main(EmptyOption.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:623)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:
78)
        at java.lang.Thread.run(Thread.java:674)
Caused by: java.io.IOException: URI is not hierarchical
        at com.sun.security.auth.login.ConfigFile.getInputStream(ConfigFile.java
:630)
        at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:282)
        at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:219)
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:108)
        ... 7 more
Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
        at java.io.File.<init>(File.java:380)
        at com.sun.security.auth.login.ConfigFile.getInputStream(ConfigFile.java
:625)
        ... 10 more

JavaTest Message: Test threw exception: java.lang.SecurityException: URI is not
hierarchical
JavaTest Message: shutting down test

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/jsn/jdk/rev/4e7ad09de58b
25-04-2008

EVALUATION The fix for 6675706 uses File path = new File(url.toURI()) to locate the file name for a file: url. These regression tests uses URLs like file:c:/path/f which is not 100% legal. Add a fallback mechanism for file: URL so that when url.openStream() fails, we'll try opening url.getPath() (or, if a UNC on Windows, try "//" + url.getHost() + url.getPath()) as a file directly. Maybe ask SQE to include tests for UNC paths.
23-04-2008