`OCA\Mail\Controller\DraftsController::update(): Argument #2 ($accountId) must be of type int, null given`
Open
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
- ???
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
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 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