Hello fellow people.
We have a Confluence DC, to which we have added several "User Macros".
One of which is pretty old yet very useful to us in formatting pages.
The macro stopped working and it only displays this message:
User Macro "MACRO NAME" may use context keys [ action, permissionHelper, pageManager ] which are not set in system property macro.required.velocity.context.keys. If the macro is not rendered as expected, try to manually add those keys into the system property.
How is it possible to add the missing context keys? Thanks.
Hi Houssein,
You can see this Confluence Bug - CONFSERVER-82741 (Variables in user macro are not resolved)
Here is described workaround:
Please review the User Macro administration interface and the documentation at Confluence objects accessible from Velocity to determine what modules should be allow listed.
Modules can be added using the system property below
-Dmacro.required.velocity.context.keys=comma,seperated,key,values
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.