-
Bug
-
Resolution: Won't Fix
-
Medium
-
None
-
CCMA - 3.4.12, CCMA - 3.4.13
-
Severity 1 - Critical
-
6
Issue Summary
When an app macro in server stores some data in the pages as content property via ContentPropertyManager API the properties are stored in the contentproperties table. The data from that table is migrated to the cloud via Space import or CCMA, but the GET wiki/rest/api/content/{contentid}/property can't retrieve that data. This is because that API endpoint expects the data to be saved in the content table instead.
CCMA and the Space import engine should be able to convert that data so it can be accessed by the Cloud Rest API.
We can either have the ContentPropertyManager content properties to be available in Cloud after a Server → Cloud migration or we have the ContentPropertyService content properties to drop/delete perm checks or provide overloaded methods to create/update/delete without having page EDIT perms.
Or is there is some other alternative API. Like, what is populating the CONTENTPROPERTIES table? Is that data available in Cloud? Why the ContentPropertyManager is using OS_PROPERTYENTRY and not CONTENTPROPERTIES?
This is reproducible on Data Center: (yes) / (no)
Steps to Reproduce
- Create some content properties on the server via ContentPropertyManager => com.atlassian.confluence.core.ContentPropertyManager.setTextProperty(ContentEntityObject contentObject,String votePropertyKey, String votePropertyValue);
- Migrate the space containing the content properties to the cloud via Space Import or via CCMA.
- Look for the properties on the Database: select * from contentproperties where contentid = 123456
- Run API's to get the content properties: wiki/rest/api/content/123456/property/ or wiki/rest/api/content/123456/?expand=<propertyname>
Expected Results
The content properties should be returned by the API.
Actual Results
The API does not return existing properties
Workaround
Developers can either use ContentPropertyService and store their content properties, or store their content in an AO_ table and migrate the data with the App Migration platform.
Form Name |
---|
Hi Team,
Based on the latest update from engineering, I will be closing this bug report out as Won't Fix as the recommend way is to use ContentPropertyService or store the data elsewhere.
Regards,
James.