Project

General

Profile

Actions

Bug #12359

closed

Cannot generate policies when there is a loop in policy server hierharchy (stackoverflow)

Added by François ARMAND over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

When there is a loop in policy serveur own policy server, we get a stackoverflow:

[2018-04-04 14:33:05] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
java.lang.StackOverflowError: null
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$3(PathComputer.scala:147)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.recurseComputePath(PathComputer.scala:146)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$5(PathComputer.scala:155)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$3(PathComputer.scala:148)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.recurseComputePath(PathComputer.scala:146)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$5(PathComputer.scala:155)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$3(PathComputer.scala:148)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.recurseComputePath(PathComputer.scala:146)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$5(PathComputer.scala:155)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$3(PathComputer.scala:148)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.recurseComputePath(PathComputer.scala:146)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$5(PathComputer.scala:155)
        at net.liftweb.common.Full.flatMap(Box.scala:808)
        at com.normation.rudder.services.policies.write.PathComputerImpl.$anonfun$recurseComputePath$3(PathComputer.scala:148)
        at net.liftweb.common.Full.flatMap(Box.scala:808)

Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #9736: Stack overflow on node generationRejectedActions
Actions

Also available in: Atom PDF