-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Space - Page Templates
-
None
-
1
-
Severity 3 - Minor
Issue Summary
The REST API endpoint `GET /rest/api/template/page?expand=body.storage` times out with a 504 Gateway Timeout for tenants with a large number of page templates (~50+). The limit and start pagination parameters have no effect on reducing response time.
Steps to Reproduce
1. Have a Confluence Cloud site with 50+ page templates (space-level + global)
2. Call GET /wiki/rest/api/template/page?spaceKey=<KEY>&expand=body.storage&limit=15
3. Observe 504 Gateway Timeout with response header X-Failure-Category: FAILURE_ORIGIN_READ_TIMEOUT
Expected Results
The limit/start pagination parameters should increase/decrease the response time.
Actual Results
Endpoint times out, even with less templates requested in pagination.
Workaround
Fetch template metadata first without expand=body.storage, then retrieve individual template bodies via `GET /rest/api/template/
{id}?expand=body.storage` one at a time
- was cloned as
-
CONFCLOUD-84868 GET templates with body returns 504 timeout for tenants with many templates
-
- Gathering Impact
-