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 Leaders.
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

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 Leaders.
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 Leaders.
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
Community Champion
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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.19.11
TAGS
AUG Leaders

Atlassian Community Events