Attachments not listed in API
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 43
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Describe the bug
I try to get the attachments from a card, while attachmentCount is for example 3, list of attachments is empty.
To Reproduce
Steps to reproduce the behavior:
- Create a card
- Attach a file from nextcloud
- Attachment is listed in browser
- check API endpoint GET /boards/{boardId}/stacks/{stackId}/cards/{cardId} - attachmentCount is the count of attachments, attachments is an empty list
- check API endpoint GET /boards/{boardId}/stacks/{stackId}/cards/{cardId}/attachments - empty list
Expected behavior
see a list of attachments or the fileId or a download-link
Screenshots
{'id': 1118, 'title': 'HP_Eindrücke', 'description': 'fancy description', 'stackId': 13, 'type': 'plain', 'lastModified': 1724497262, 'lastEditor': None, 'createdAt': 1724493549, 'labels': [], 'assignedUsers': [], 'attachments': [], 'attachmentCount': 3, 'owner': {'primaryKey': 'user', 'uid': 'user', 'displayname': 'user', 'type': 0}, 'order': 3, 'archived': False, 'done': None, 'duedate': None, 'deletedAt': 0, 'commentsUnread': 0, 'commentsCount': 0, 'ETag': '3c3400ac740ece4c0dae4eafb1125958', 'overdue': 0}
Nextcloud version: 29.0.4
Deck version: 1.13.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a card and an attached file, then compare GET /boards/{boardId}/stacks/{stackId}/cards/{cardId} with its /attachments endpoint. Trace why attachmentCount is nonzero while both attachment lists are empty. Done means the API returns the attachments, their fileId, or a download link consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100