Project

General

Profile

Bug #12359

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

Added by François ARMAND 8 months ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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

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

Associated revisions

Revision 46bf3122 (diff)
Added by François ARMAND 8 months ago

Fixes #12359: Cannot generate policies when there is a loop in policy server hierharchy (stackoverflow)

Revision b79fde38 (diff)
Added by François ARMAND 8 months ago

Fixes #12359: Cannot generate policies when there is a loop in policy server hierharchy (stackoverflow)

History

#1 Updated by Vincent MEMBRÉ 8 months 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

#2 Updated by François ARMAND 8 months ago

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

#3 Updated by François ARMAND 8 months ago

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

#4 Updated by François ARMAND 8 months ago

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

#5 Updated by François ARMAND 8 months 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.

#6 Updated by François ARMAND 8 months ago

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

#7 Updated by François ARMAND 8 months 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

#8 Updated by François ARMAND 8 months ago

  • Status changed from Pending technical review to Pending release

#10 Updated by Alexis MOUSSET 8 months 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.

Also available in: Atom PDF