Skip to content

#15 fix(confluence): Page through all attachments of a page - #16

Merged
marcreichel merged 1 commit into
mainfrom
fix/#15-attachment-pagination
Nov 2, 2026
Merged

marcreichel merged 1 commit into
mainfrom
fix/#15-attachment-pagination

Conversation

@marcreichel

Copy link
Copy Markdown
Member

Summary

  • Content::findChildAttachments() sent a single request without start/limit, so Confluence returned at most 50 attachments, and on pages with more the remaining images were never downloaded.
  • It now requests pages of 200 and advances start by the limit Confluence actually applied, stopping on a short page (same approach as findPagesInSpace()).
  • Since attachments of included pages go through the same method, this also covers #29438 feat(confluence): Show content included from other pages #14.
  • Test helper in ContentTest now accepts multiple mocked responses and records sent requests; a new test covers paging across three result pages.

Closes #15

findChildAttachments() sent a single request and so returned at most 50 attachments (Confluence's default page size). It now requests pages of 200 and follows start/limit until a short page is returned.
@marcreichel
marcreichel merged commit ecc618d into main Nov 2, 2026
8 checks passed
@marcreichel
marcreichel deleted the fix/#15-attachment-pagination branch November 2, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

findChildAttachments() ignores pagination and returns at most 50 attachments

2 participants