-
Type:
Suggestion
-
Resolution: Won't Fix
-
Component/s: Connect Platform, Ecosystem
When trying to expand the container property of a container in the Confluence REST API, the API complains with 'java.lang.IllegalArgumentException: Cannot recursively expand : container'.
Example: Retrieve the details of an attachment comment via https://product-fabric.atlassian.net/wiki/rest/api/content/52901548?expand=container. The expanded container property has a nested container property that I want to expand but calling https://product-fabric.atlassian.net/wiki/rest/api/content/52901548?expand=container.container does not work.
API returns:
statusCode": 500, "message": "java.lang.IllegalArgumentException: Cannot recursively expand : container" This should be a legitimate use of the API. The container of an attachment comment is the attachment itself and I want to know which container the attachment is in (e.g. which page).
Another example is a comment on a CQ answer where you would want to expand container multiple times:
answer-comment.container = answer
answer-comment.container.container = question
answer-comment.container.container.container = space (or null, for global questions)