Our organization is having an issue with a velocity template that contains a recursive macro. The exception message is:
org.apache.velocity.exception.MacroOverflowException: Max calling depth of 20 was exceeded in Template
(Note that the velocity template in question is custom build-for and deployed through the Scroll Viewport plug-in).
The Confluence installation is on-premise and the version # is 6.14.
Reviewing the configuration in the installation folder the velocity.properties file has the "velocimacro.max.depth" configuration assigned to "-1" (no limit).
velocimacro.max.depth=-1
It's my understanding that this is the only configuration variable that controls the macro recursion depth. However, regardless of this setting the custom velocity template fails at depth 20.
Can anyone provided guidance on how to resolve this?