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 #1

Updated by Vincent MEMBRÉ over 6 years ago

  • Subject changed from Stackoverflow when there is loop in policy serveur parents to Cannot generate policies when there is a loop in policy server hierharchy
Actions #2

Updated by François ARMAND over 6 years ago

  • Related to Bug #9736: Stack overflow on node generation added
Actions #3

Updated by François ARMAND over 6 years ago

  • Related to deleted (Bug #9736: Stack overflow on node generation)
Actions #4

Updated by François ARMAND over 6 years ago

  • Has duplicate Bug #9736: Stack overflow on node generation added
Actions #5

Updated by François ARMAND over 6 years ago

  • Subject changed from Cannot generate policies when there is a loop in policy server hierharchy to Cannot generate policies when there is a loop in policy server hierharchy (stackoverflow)

We need to have "stackoverflow" in the title to be able to find it back.

Actions #6

Updated by François ARMAND over 6 years ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #7

Updated by François ARMAND over 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/1888
Actions #8

Updated by François ARMAND over 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #10

Updated by Alexis Mousset over 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.11, 4.2.5 and 4.3.0~rc3 which were released today.

Actions

Also available in: Atom PDF