modoboa/modoboa-contacts

Error when adding a contact via webmail

AmazingBeu opened this issue · 2 comments

issue

When i try to add a contact via the webmail, nothing seem happen when i click on save button.

The POST resquest to /api/v1/contacts/ return this 500 error (in debug mode):

500 Server Error: Internal Server Error for url: https://mail.virtit.fr/radicale/user1@XXXXXXXXXXX/contacts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.vcf

And radicale return :

ERROR: An exception occurred during PUT request on 'user1@XXXXXXXXXXX/contacts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.vcf': local variable 'vobj' referenced before assignment

Paradoxically, the contact is create in the radicale and appears in the webmail after about 60sec (my synchronization frequency).

It happen only on my account.
I tried to delete the values from the address book in the database and delete the radical contact files, and the problem persists.

Configuration

Modoboa 1.12.1
Amavis frontend 1.2.3
Contacts 0.7.3
DMARC tools 1.1.0
PDF credentials 1.3.1
Postfix autoreply 1.5.1
Radicale management 1.3.6
Sieve filters 1.4.1
Statistics 1.4.1
Webmail 1.5.0

OS : Debian stretch
DB : Mysql

I think your issue is caused by a Radicale plugin which is not up to date. If you installed Modoboa using the installer, run the following commands:

> su - radicale
> cd env/src/radicale-storage-by-index
> git pull origin master
> exit
> supervisorctl restart radicale

I didn't have this directory because the plugin was manually installed via pip.

I reinstalled the plugin from git with your method and it work perfectly.

Thank you !