-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Space - Create
-
Severity 2 - Major
Issue Summary
This is reproducible on Data Center: (no)
In extremely rare cases, the create space API endpoint can return the wrong space id in its response.
This issue has only been observed in one Confluence cloud instance and not reproducible in any other instances.
Steps to Reproduce
The issue is happens in a single instance with the app SoftComply Document Manager
- Install the app
- Navigate to the App's global page by clicking on the app from the top menu bar
- try to configure the app (which creates 3 spaces using )
Expected Results
the configuration process finishes successfully. this would indicate that the create space API returned correct ids for all the spaces that was created.
Actual Results
The spaces are created successfully but one of the responses from the 3 API calls will returns a wrong space_id. If we check the space_created event, it'll also contain a wrong id.
Depending on which space creation response was wrong, we'd get an error in step 3 or step 4. This is because /wiki/api/v2/space/$id fails as the $id returned by /wiki/rest/api/space isn't the id of the space that's created.
Workaround
We can use Get spaces V2 API endpoint to search for spaces by their keys. like this.
curl --location 'https://sitename.atlassian.net/wiki/api/v2/spaces?keys=$key1,$key2' \ --header 'Accept: application/json' \ --header 'Authorization: Basic ...'