nextcloud / nextcloud/mail

`OCA\Mail\Controller\DraftsController::update(): Argument #2 ($accountId) must be of type int, null given`

Open
#9,147 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug javascript
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. ???
Expected behavior

No error in drafts

Actual behavior

PUT /apps/mail/api/drafts/%7Bid%7D <- id parameter is not replaced

Mail app version

3.5.0 RC2

Mailserver or service

No response

Operating system

No response

PHP engine version

None

Web server

None

Database

None

Additional info

No response

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 with OCA\Mail\Controller\DraftsController::update() and the PUT /apps/mail/api/drafts/%7Bid%7D endpoint. Determine how the draft id remains as {id} and why accountId is null, then reproduce the failure using the stated request. Done means updating a draft no longer raises the type error and the id is replaced correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.