TypeError in Deck: findBoardId() blocks file management in Nextcloud
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 43
Description
Description of the Issue
When creating or deleting files in Nextcloud, a TypeError occurs in the Deck app. This error prevents file management operations (e.g., creating or deleting files/folders) from completing successfully.
The error message is:
OCA\Deck\Db\CardMapper::findBoardId(): Argument #1 ($id) must be of type int, string given, called in /var/www/nextcloud/apps/deck/lib/Sharing/DeckShareProvider.php on line 1027
Steps to Reproduce
- Navigate to the "Files" section in Nextcloud.
- Attempt to create a new file or delete an existing file.
- The error appears, and the file operation fails.
Expected Behavior
Files should be created or deleted without errors, regardless of whether the Deck app is enabled.
Software Versions
- Nextcloud version: 33.02
- Deck app version: 1.17.1
- PHP version: 8.3.30
- Database type and version: mysql 8.0.45
Log Messages
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 at DeckShareProvider.php line 1027 and inspect the call to CardMapper::findBoardId(), then reproduce the issue by creating or deleting a file in Nextcloud Files with Deck enabled. Compare the behavior with Deck disabled and run the relevant existing test suite, if available; done means file operations complete without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100