fix(search): read Confluence pages through the v2 API the Search grant allows - #8321
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
…k for legacy blog-post references
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
read_documentcalled the v1GET /wiki/rest/api/content/{id}?expand=body.view, which Atlassian denies for Search connections because their granular grant lacksread:content-details:confluence/wiki/api/v2/pages/{id}/blogposts/{id}withbody-format=view), which need onlyread:page:confluence/read:blogpost:confluence— both already grantedType of Change
Testing
Response shapes checked against a public Confluence Cloud site's v2 API. New tests fail on the old code and pass on the new; live-search suite (237), lint, 51 audits and type-check pass
Checklist