Variables in user macro are not resolved

Tony Montana
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 12, 2023

Hello. My user macros said me 

 

User Macro show-if-ext may use context keys [ userAccessor, permissionHelper, 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.

 

I found this https://jira.atlassian.com/browse/CONFSERVER-82741

But I dont really understand what should I add and when.

-Dmacro.required.velocity.context.keys=userAccessor, permissionHelper, req

 in setenv.sh?

1 answer

1 accepted

0 votes
Answer accepted
Tony Montana
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 12, 2023

need CATALINA_OPTS="-Dmacro.required.velocity.context.keys=userAccessor,permissionHelper,req ${CATALINA_OPTS}"

Suggest an answer

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

Atlassian Community Events