Foreign key on IMAP server is failing
When changing the CN of an IMAP server and changing its base at the same time the foreign key on CN is not correctly updated.
Steps to Reproduce
- Create an IMAP server
- Link it to a user
- Rename and move the server at the same time
- Check the gosaMailServer LDAP field value
It should contain the new CN
It contains the old one
Also it seems the mail server cache is not cleared as it should. I’m still openning this in core as the main problem is most likely in the foreignKey system. I will move it if needed.