Name: asR10013 Date: 03/07/2002
JDK/JRE : jre1.4.1-b04
TCK : TCK-JNLP-1.0.1-02
JavaWS : JWS1.1
Platform[s] : Windows 2000 Prof
switch/Mode : tck-remote
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : jnlp_file/resources/property/index.html#property [property2001, property2002]
JNLP specification v.1.0.1-fcs says that system property attributes specified in the resource section of
JNLP file should be accesible for JNLP application and the test checks this assertion.
However test fails with "java.security.AccessControlException: access denied" that conflicts with
JNLP spec.
Here is a part of JNPL file for the failing test:
===
<?xml version="1.0" encoding="UTF-8"?>
...
<resources>
...
<property name="test" value="Test"/>
<property name="java.vendor" value="nobody"/>
<property name="t" value="1"/>
<property name="test" value="new value"/>
</resources>
...
</jnlp>
===
Test source location:
=====================
tests/jnlp_file/resources/property/propertyTests.java
tests/jnlp_file/resources/property/test.jnlp
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/hopper/b04/tck1.0.1/windows2000_linux_2_remote/workDir/jnlp_file/resources/property/index_property.jtr
How to reproduce:
=================
1. Install JRE1.4.1-b04 onto Windows 2000 machine
2. Run test jnlp_file/resources/property/index.html#property using JavaTest harness.
Test output:
============
----------log:(62/3961)----------
tests: 2; failed: 2; first test case failure: property2001
java.lang.reflect.InvocationTargetException
[...]
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission t read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at javasoft.sqe.tests.jnlp.file.resources.property.propertyTests.property2001(propertyTests.java:49)
... 20 more
property2001: Failed. Test case throws exception: java.security.AccessControlException: access denied (java.util.PropertyPermission t read)
java.lang.reflect.InvocationTargetException
[...]
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission t write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at javasoft.sqe.tests.jnlp.file.resources.property.propertyTests.property2002(propertyTests.java:69)
... 20 more
property2002: Failed. Test case throws exception: java.security.AccessControlException: access denied (java.util.PropertyPermission t write)
result: Failed. tests: 2; failed: 2; first test case failure: property2001
test result: Failed. tests: 2; failed: 2; first test case failure: property2001
Specific Machine Info:
======================
Hostname: linux-2
Os: Windows 2000 Pro
======================================================================