Project

General

Profile

Actions

Bug #15004

closed

Stack overflow error when using invalid JS

Added by Nicolas CHARLES almost 5 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Very Small
Priority:
67
Name check:
Fix check:
Regression:

Description

I used this JS expression for motd

"This node is managed by Rudder, it's hostname is ${rudder.node.hostname} and hashing it is "+
rudder.hash.md5(${rudder.node.hostname})

this caused Rudder to shut down, because of

rudder.hash.md5(RDR-TST-RandHost596.rudder.local)' for Variable MOTD - please check method call and/or syntax; ReferenceError: "RDR" is not defined in <eval> at line number 2 <- Error with p
arameters expansion for node 'RDR-TST-RandHost150.rudder.local' (91dc8c60-2174-4f58-8869-ce3314ad7c27): When processing directive 'MOTD and pre-login banner': Invalid script 'evaljs:"This no
de is managed by Rudder, it's hostname is RDR-TST-RandHost150.rudder.local and hashing it is "+
rudder.hash.md5(RDR-TST-RandHost150.rudder.local)' for Variable MOTD - please check method call and/or syntax; ReferenceError: "RDR" is not defined in <eval> at line number 2
[2019-05-31 10:01:58] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
java.lang.StackOverflowError: null
        at net.liftweb.common.Failure.exceptionChain(Box.scala:971)
        at net.liftweb.common.Failure.$anonfun$exceptionChain$2(Box.scala:978)
        at scala.collection.immutable.List.flatMap(List.scala:334)
        at net.liftweb.common.Failure.exceptionChain(Box.scala:978)
        at net.liftweb.common.Failure.$anonfun$exceptionChain$2(Box.scala:978)
        at scala.collection.immutable.List.flatMap(List.scala:334)
        at net.liftweb.common.Failure.exceptionChain(Box.scala:978)
        at net.liftweb.common.Failure.$anonfun$exceptionChain$2(Box.scala:978)
        at scala.collection.immutable.List.flatMap(List.scala:334)
        at net.liftweb.common.Failure.exceptionChain(Box.scala:978)
        at net.liftweb.common.Failure.$anonfun$exceptionChain$2(Box.scala:978)
        at scala.collection.immutable.List.flatMap(List.scala:334)
        at net.liftweb.common.Failure.exceptionChain(Box.scala:978)
        at net.liftweb.common.Failure.$anonfun$exceptionChain$2(Box.scala:978)
        at scala.collection.immutable.List.flatMap(List.scala:334)
        at net.liftweb.common.Failure.exceptionChain(Box.scala:978)
        at net.liftweb.common.Failure.$anonfun$exceptionChain$2(Box.scala:978)

errors should nicely accumulate

Actions #1

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.12 to 5.0.13
Actions #2

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 5.0.13 to 5.0.14
Actions #3

Updated by François ARMAND over 4 years ago

  • Assignee set to François ARMAND
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 50
Actions #4

Updated by François ARMAND over 4 years ago

  • Status changed from New to In progress
Actions #5

Updated by François ARMAND over 4 years ago

  • Status changed from In progress to New
  • Assignee changed from François ARMAND to Nicolas CHARLES

I can't reproduce it in 5.0.14, is it still present Nicolas? If so, how did you reproduced it?

Actions #6

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 5.0.14 to 5.0.15
  • Priority changed from 50 to 49
Actions #7

Updated by François ARMAND over 4 years ago

  • Effort required set to Very Small
  • Priority changed from 49 to 75

very small for reproduction instruction

Actions #8

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 5.0.15 to 5.0.16
  • Priority changed from 75 to 74
Actions #9

Updated by Alexis Mousset about 4 years ago

  • Target version changed from 5.0.16 to 5.0.17
  • Priority changed from 74 to 71
Actions #10

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 5.0.17 to 5.0.18
  • Priority changed from 71 to 69
Actions #11

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 5.0.18 to 5.0.19
  • Priority changed from 69 to 67
Actions #12

Updated by Nicolas CHARLES over 3 years ago

  • Status changed from New to Rejected

Error is correct now.
Rejecting

Actions

Also available in: Atom PDF