nextcloud / nextcloud/mail

OutboxController::create(): Argument #1 ($accountId) must be of type int, null given

Open
#8,401 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Steps to reproduce
  1. Let @jancborchardt use this app
Expected behavior

Happy Jan-C

Actual behavior
TypeError: OCA\Mail\Controller\OutboxController::create(): Argument #1 ($accountId) must be of type int, null given, called in /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 230
#6 /mail/lib/Controller/OutboxController.php(105): OCA\Mail\Controller\OutboxController::create
#5 /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(230): OC\AppFramework\Http\Dispatcher::executeController
#4 /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(137): OC\AppFramework\Http\Dispatcher::dispatch
#3 /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/App.php(183): OC\AppFramework\App::main
#2 /var/www/cloud.nextcloud.com/nextcloud/lib/private/Route/Router.php(315): OC\Route\Router::match
#1 /var/www/cloud.nextcloud.com/nextcloud/lib/base.php(1056): OC::handleRequest
#0 /var/www/cloud.nextcloud.com/nextcloud/index.php(36): null

Exception: OCA\Mail\Controller\OutboxController::create(): Argument #1 ($accountId) must be of type int, null given, called in /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 230 in file '/var/www/cloud.nextcloud.com/nextcloud/apps/mail/lib/Controller/OutboxController.php' line 105
#4 /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(169): OC\AppFramework\Http\Dispatcher::dispatch
#3 /var/www/cloud.nextcloud.com/nextcloud/lib/private/AppFramework/App.php(183): OC\AppFramework\App::main
#2 /var/www/cloud.nextcloud.com/nextcloud/lib/private/Route/Router.php(315): OC\Route\Router::match
#1 /var/www/cloud.nextcloud.com/nextcloud/lib/base.php(1056): OC::handleRequest
#0 /var/www/cloud.nextcloud.com/nextcloud/index.php(36): null
Mail app version

3.1.1

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 at apps/mail/lib/Controller/OutboxController.php line 105 and trace how OutboxController::create receives accountId through the Nextcloud dispatcher. Reproduce the failure using the reported account and verify that the null accountId TypeError no longer occurs; the issue provides no test file or additional environment details.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.