nextcloud / nextcloud/deck

Board ownership transfer to non-existent user

Open
#7,747 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
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
The API endpoint responsible for transferring board ownership allows a user to specify a new owner via the newOwner parameter. However, the backend service does not validate whether the specified user actually exists in the system.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Deck board.
  2. Transfer ownership with /apps/deck/boards/26/transferOwner using wrong new owner.
  3. The requests is successful

Expected behavior
It returns an error Invalid request

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 by locating the handler for the Deck /apps/deck/boards/26/transferOwner endpoint and reproduce the request with an invalid newOwner. Read the surrounding ownership-transfer logic and its existing tests, if present; done means nonexistent users receive an Invalid request error while valid transfers continue to succeed.

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
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.