Hi,
We’ve encountered a strange thing/bug with a customer of us: They have a content property with duplicate keys like this:
{
{
"id": "XXXXXXXXX",
"key": "key-example",
"value": [ ...
],
"version": {
"when": "2021-01-23T12:58:55.368Z",
"message": "",
"number": 8,
"minorEdit": false
},
"_expandable": {
"content": "/rest/api/content/XXXXXXXX"
},
"_links": {
"self": "https://xxxxxxxxx.atlassian.net/wiki/rest/api/content/XXXXXXXXX/property/key-example"
}
},
{
"id": "XXXXXXXXXXXX-different",
"key": "key-example",
"value": [],
"version": {
"when": "2019-10-20T11:33:43.948Z",
"message": "",
"number": 1,
"minorEdit": false
},
"_expandable": {
"content": "/rest/api/content/XXXXXXXXX"
},
"_links": {
"self": "https://xxxxxxx.atlassian.net/wiki/rest/api/content/XXXXXXXXXX/property/key-example"
}
}
}
The property id’s are different, but the keys are the same. One key contains data, and the other is empty.
Is there a way to “deduplicate” the keys? And to select to keep the key with the data?