-
Bug
-
Resolution: Fixed
-
High
-
12
-
Minor
-
9
-
Issue Summary
New labels can be created via API using the add labels to content API endpoint. If users use this API endpoint multiple times and fast enough, and no label exists at the start of the execution of their script, then multiple labels will be created with the same name.
Steps to Reproduce
- Have a script that calls the above end point very quickly or in parallel for multiple pieces of content and using the same label name.
- Run the script
Expected Results
One label is created and is associated with all content
Actual Results
Multiple labels are created with the same name. It seems to be random which content gets which duplicate, but typically one label will have the most associations.
This can be confirmed by using the Label List macro and noting that multiple labels are listed with the same name.
Workaround
If duplicate labels have been created:
- Remove these labels from all content either manually or by utilizing the remove label from content API endpoint.
- Add the labels back either manually or by utilizing the add labels to content API endpoint. Since the label exists by the time these requests are received, only one label will be used this time, regardless of the speed of the API calls.
The above process will ensure that all labels have one and only one label, rather than any duplicate label.
To prevent this issue from happening in the future, for each new label to be created, make sure that the label exists first (either via UI or one API call), then subsequent calls will use the already created label regardless of the speed at which those calls are created.
- details
-
CONFCLOUD-5254 Duplicate labels can be created
- Closed
- is related to
-
CONFCLOUD-76113 Migrating Confluence with CCMA latest version creates duplicated labels
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...