Project

General

Profile

Actions

Bug #8857

closed

Some Javascript engine fails when accessing system values

Added by Vincent MEMBRÉ almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Internal libs
Target version:
Severity:
User visibility:
Effort required:
Priority:

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.*
    

Related issues

Related to Rudder - User story #8629: Allows generation-time javascript eval in directive parametersReleasedFrançois ARMAND2016-07-28Actions
Actions #1

Updated by Vincent MEMBRÉ almost 5 years ago

That happens with the following jdk:

root@scala-builder:~# java -version
java version "1.7.0_95" 
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
Actions #2

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from New to In progress
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
Actions #3

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1164
Actions #4

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #5

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.13 and 3.2.6 which were released today.

Actions #6

Updated by François ARMAND over 4 years ago

  • Related to User story #8629: Allows generation-time javascript eval in directive parameters added
Actions

Also available in: Atom PDF