Type Error on Sync with IMAP Server
Open
Nobody has claimed this yet.
1. to develop
bug
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- Setup a Imap Server
- Connect
- Send Alot of E-mails
- Let it sync
Expected behavior
Successful Sync
Actual behavior
[mail] Fehler: OCA\Mail\Exception\ServiceException: Sync failed for 36:Trash: OCA\Mail\Db\MessageMapper::deleteByUid(): Argument #2 must be of type int, string given, called in /var/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php on line 453 at <<closure>>
0. /var/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php line 127
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync()
1. /var/www/nextcloud/apps/mail/lib/Controller/MailboxesController.php line 161
OCA\Mail\Service\Sync\SyncService->syncMailbox()
2. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Mail\Controller\MailboxesController->sync()
3. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController()
4. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
5. /var/www/nextcloud/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
6. /var/www/nextcloud/lib/base.php line 1023
OC\Route\Router->match()
7. /var/www/nextcloud/index.php line 36
OC::handleRequest()
POST /nextcloud/index.php/apps/mail/api/mailboxes/161/sync
from IP by user at 2022-08-18T14:18:25+00:00
Mail app version
1.13.8
Mailserver or service
Linux Mailserver
Operating system
Ubuntu x64 LTS
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database
MariaDB
Additional info
Nextcloud Server: 24.0.4
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\Service\Sync\ImapToDbSynchronizer.php at line 453 and inspect the call to OCA\Mail\Db\MessageMapper::deleteByUid(). Trace the sync entry point through MailboxesController.php and reproduce the IMAP mailbox sync; done means the sync completes without the reported argument type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100