The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence system property macro.required.velocity.context.keys not set

Jurica Petricevic
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 5, 2023

Hi Community,

 

after the update to 7.19.11 we have a problem with macro commands. How to add the necessary properties to the system or does this not work at all?

 

Error:

User Macro show-content-group may use context keys [ userAccessor, action, req ] 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.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Jurica Petricevic
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 5, 2023

Properties addad like this and problem is solved.


CATALINA_OPTS="-Dmacro.required.velocity.context.keys=comma,seperated,key,values,userAccessor,permissionHelper,action,pageManager,req"
in:
/opt/atlassian/confluence/bin/setenv.sh

Jurica Petricevic
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 5, 2023

This burdened our system to such an extent that normal operation was no longer possible. This is not a solution for us. We are looking for other solutions.

Like # people like this
0 votes
Kseniia Trushnikova
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 24, 2024

Hi @Jurica Petricevic,

In your case, adding just this is enough:

CATALINA_OPTS="$CATALINA_OPTS -Dmacro.required.velocity.context.keys=userAccessor,action,req"

Please check out the bug ticket https://jira.atlassian.com/browse/CONFSERVER-82741 related to your issue, there's a note from Atlassian. The behaviour you're experiencing is intended.

DEPLOYMENT TYPE
SERVER
VERSION
7.19.11
TAGS
AUG Leaders

Atlassian Community Events