/hg/icedtea-web: Reflect possibility of disabled manifest check ...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Tue Apr 15 09:32:46 UTC 2014
changeset 3f9913affb06 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=3f9913affb06
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Apr 15 11:32:02 2014 +0200
Reflect possibility of disabled manifest check to unit-test
* tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new field (attCheckValue) to store original value. (setPermissions) is enabling check and (resetPermissions) returning back to original
diffstat:
ChangeLog | 7 +++++++
tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
diffs (38 lines):
diff -r e5175632c41a -r 3f9913affb06 ChangeLog
--- a/ChangeLog Mon Apr 14 12:06:37 2014 -0400
+++ b/ChangeLog Tue Apr 15 11:32:02 2014 +0200
@@ -1,3 +1,10 @@
+2014-04-15 Jiri Vanek <jvanek at redhat.com>
+
+ Reflect possibility of disabled manifest check to unit-test
+ * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new field
+ (attCheckValue) to store original value. (setPermissions) is enabling check
+ and (resetPermissions) returning back to original
+
2014-04-14 Andrew Azores <aazores at redhat.com>
* netx/net/sourceforge/jnlp/resources/Messages.properties:
diff -r e5175632c41a -r 3f9913affb06 tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java
--- a/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java Mon Apr 14 12:06:37 2014 -0400
+++ b/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java Tue Apr 15 11:32:02 2014 +0200
@@ -60,16 +60,20 @@
public class JNLPFileTest extends NoStdOutErrTest {
private static AppletSecurityLevel level;
+ private static boolean attCheckValue;
@BeforeClass
public static void setPermissions() {
level = AppletStartupSecuritySettings.getInstance().getSecurityLevel();
+ attCheckValue = ManifestAttributesChecker.isCheckEnabled();
JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_SECURITY_LEVEL, AppletSecurityLevel.ALLOW_UNSIGNED.toChars());
+ JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK, String.valueOf(true));
}
@AfterClass
public static void resetPermissions() {
JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_SECURITY_LEVEL, level.toChars());
+ JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK, String.valueOf(attCheckValue));
}
More information about the distro-pkg-dev
mailing list