Closed (fixed)
Project:
OpenWoo
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2026 at 11:52 UTC
Updated:
21 Oct 2026 at 13:30 UTC
Jump to comment: Most recent
The attachments request in getAttachmentsList() sends no _limit/pagination, so the API's default page size of 30 items applies.
The OpenWoo API paginates its attachments endpoint, and the module only ever reads the first page.
What the API returns for /publications/c16a6026-…/attachments:
┌───────────────────────────────┬───────┬───────┬───────┬──────────┐
│ Request │ total │ limit │ pages │ returned │
├───────────────────────────────┼───────┼───────┼───────┼──────────┤
│ no params (what Drupal sends) │ 116 │ 30 │ 4 │ 30 │
├───────────────────────────────┼───────┼───────┼───────┼──────────┤
│ ?_limit=200 │ 116 │ 200 │ 1 │ 116 │
├───────────────────────────────┼───────┼───────┼───────┼──────────┤
│ ?_page=2 │ 116 │ 30 │ 4 │ 30 │
└───────────────────────────────┴───────┴───────┴───────┴──────────┘So there are 116 attachments, but the API returns 30 per page unless you ask for more.
Fix: go through all pages instead of reading only the first. The /publications endpoint uses _limit/_offset
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
joshahubbers commentedReviewed by @RalphvdHout