Closed amitjoy closed 1 month ago
I just found out that if the comma in expand query param is URL encoded, the request returned 404 whereas if the comma is used in the expand param to separate the list, it is accessible
For example:
✅ https://SERVER/rest/api/content?spaceKey=PRS&limit=100&status=current&expand=body.storage,version&type=page ❌ https://SERVER/rest/api/content?spaceKey=PRS&limit=100&status=current&expand=body.storage%2Cversion&type=page
I am not able to retrieve the page content due to this issue at all. Could anyone kindly have a look?
The following lines in atlassian.rest_client.AtlassianRestAPI.request causes the issue:
atlassian.rest_client.AtlassianRestAPI.request
if params: url += urlencode(params or {})
@amitjoy feel free to send PR
I just found out that if the comma in expand query param is URL encoded, the request returned 404 whereas if the comma is used in the expand param to separate the list, it is accessible
For example:
✅ https://SERVER/rest/api/content?spaceKey=PRS&limit=100&status=current&expand=body.storage,version&type=page ❌ https://SERVER/rest/api/content?spaceKey=PRS&limit=100&status=current&expand=body.storage%2Cversion&type=page
I am not able to retrieve the page content due to this issue at all. Could anyone kindly have a look?