Actions
Bug #12359
closedCannot generate policies when there is a loop in policy server hierharchy (stackoverflow)
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
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)
Actions