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

0 votes
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2024

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events