Actions
Bug #8857
closedSome Javascript engine fails when accessing system values
Status:
Released
Priority:
N/A
Assignee:
Category:
Architecture - Internal libs
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
The following tests fails for reason that were not expected:
- It should fail with a failure containing 'forced interrupted' when accessing file system, but fails with a WrappedException containing a securityException:
When getting the sandboxed environement\u002C one should::not be able to access FS with JS(com.normation.rudder.services.policies.TestJsEngine): Failure(sun.org.mozilla.javascript.WrappedException: Wrapped java.lang.SecurityException: access denied to: ("java.io.FilePermission" "/tmp/rudder-test-fromjsengine" "write") (<Unknown source>#1) in <Unknown source> at line number 1,Empty,Empty) is not a Failure whose message matches .*forced interrupted.*
- It should fail with a failure containing 'forced interrupted' when killing system, but fails with a WrappedException containing a securityException:
When getting the sandboxed environement\u002C one should::not be able to kill the system with JS(com.normation.rudder.services.policies.TestJsEngine): Failure(sun.org.mozilla.javascript.WrappedException: Wrapped java.lang.SecurityException: access denied to: ("java.lang.RuntimePermission" "exitVM.0") (<Unknown source>#1) in <Unknown source> at line number 1,Empty,Empty) is not a Failure whose message matches .*forced interrupted.*
Actions