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
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.