Forums

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

contentProperties cannot set StringProperty anymore with 8.5.14

Dominic Lagger
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.
October 1, 2024

Hi all

We just have updated from 8.5.4 to 8.5.15. Most things working fine.

We have a user macro which reads and save contentproperty informations. The contentproperty isn't working anymore. The macro is really easy and just wants to store some information:

#set ( $contentProperties = $content.getProperties() ) 
$contentProperties.setStringProperty("offsetDate", "Test")

Atlassian said:

Due to security restriction recommendations arising from a third-party audit, we blocked access to the **com.atlassian.confluence.content.ContentProperties** class from Velocity templates. Velocity templates are intended for use as a view layer—they should show/display content and not modify data or application state.

Is there any chance to store values with a user macro?

I need the values for getting the values within another macro...

Thanks for the answers.

Regards, Dominic

1 answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events