-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Low
-
Component/s: Space - Create
-
Major
Issue Summary
When space is created via REST API, that space sometimes doesn't get a homepage created.
Steps to Reproduce
Keep creating spaces using /wiki/rest/api/space?expand=space.homepage API endpoint.
Expected Results
Every space has a homepage.
Actual Results
Eventually returned space object won't have homepage property. Check out that space in UI – there will be no homepage either. It will never be created, i.e. this is not a side effect of asynchrony of some actions but rather a bug.
I was able to reproduce this issue twice in ~3000 requests with a simple sequential script.
Workaround
- Fetch the homepage template using GET /wiki/rest/api/template/com.atlassian.confluence.plugins.confluence-default-space-content-plugin:spacecontent-global
- Create a page using that template using POST /wiki/rest/api/content
- Set that page as space homepage using PUT /wiki/rest/api/space/<key>
Given the workaround requires three extra steps, I've set severity to major.