nextcloud / nextcloud/deck

TypeError in Deck: findBoardId() blocks file management in Nextcloud

Open
#7,869 2 comments 2 reactions 0 assignees View on GitHub

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
  1. Navigate to the "Files" section in Nextcloud.
  2. Attempt to create a new file or delete an existing file.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.