Skip to content

findBoardId(): Argument #1 ($id) must be of type int, string given when opening file attachment in card — popup freezes #7760

@dreleex

Description

@dreleex

Describe the bug
When opening a file attachment inside a Deck card, the card popup expands to fullscreen and freezes. The UI becomes unresponsive and the card cannot be closed without a page reload.

Steps to reproduce

Open a Deck board
Open a card that has a file attachment
Click on the attachment to open it
Card popup freezes and expands fullscreen

Expected behaviour
The file opens normally without the popup freezing.
Actual behaviour
The popup freezes. The following error appears in the Nextcloud log:

TypeError: OCA\Deck\Db\CardMapper::findBoardId(): Argument #1 ($id) must be of type int, string given, called in /var/www/html/nextcloud/apps/deck/lib/Sharing/DeckShareProvider.php on line 984
app: no app in context

Nextcloud version: 33
Deck version: 1.17.0 (latest available for NC 33)
Browser: [Firefox]
OS: macOS

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🏗️ In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions