Mail: When editing an account, it creates a new instance of the account instead of changing the current account

Created on 26 Feb 2020  路  5Comments  路  Source: nextcloud/mail

Expected behavior

it should edit the current account
(e.g. I try to edit the default rich text settings from that account)

Actual behavior

it creates a second account (that is visible after a reload of the website)

Mail app

Mail app version: (see apps admin page, e.g. 0.5.3)
1.1.2
Mailserver or service: (e.g. Outlook, Yahoo, Gmail, Exchange,...)
isn't important

Server configuration

Operating system: (e.g. Debian 8)
ubuntu 18.0.1
Web server: (e.g. Apache, Nginx,...)
apache2
Database: (e.g. MariaDB, SQLite or PostgreSQL)
PGSQL
PHP version: (e.g. 7.0)
7.2
Nextcloud Version: (see admin page, e.g. 13.0.2)
18.0.1

Client configuration

Browser: (e.g. Firefox 48)
Chromium 80 based browser
Operating system: (e.g. Arch Linux)
Windows 10


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

0. to triage bug stale

All 5 comments

We use the same routine as for a new account. But as we set an ID, the DB abstraction should update the existing account. Smells like a bug.

Actually this happens only if I enter the password again and click on "save changes".
Because if I just e.g. change the settings for the default editing mode, they doesn't get saved instantly.
Maybe a "save" button for the editing mode would solve that problem...

I have tested it a bit further and found out that the changes to the default editing mode apparenly get saved automatically but are only visible after you reload the page (if you edit this imap account setting -> navigate away and e.g. edit an email -> view the account settings again: now it seems like your change wasn't saved, but if you hard-reload the page, it show that the change was acutallly saved.

On the other hand, the bug that I first reported is still occuring.
so e.g. edit the imap account settings -> change the password -> save the changes -> reload the page: you can see now, that the mail app created a new account instead of saving the changes to the first account.

I have tested it a bit further and found out that the changes to the default editing mode apparenly get saved automatically but are only visible after you reload the page (if you edit this imap account setting -> navigate away and e.g. edit an email -> view the account settings again: now it seems like your change wasn't saved, but if you hard-reload the page, it show that the change was acutallly saved.

That was fixed recently :)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CHazz picture CHazz  路  3Comments

ChristophWurst picture ChristophWurst  路  3Comments

jancborchardt picture jancborchardt  路  4Comments

Quix0r picture Quix0r  路  5Comments

StCyr picture StCyr  路  4Comments