Univention Bugzilla – Bug 40014
errors in dovecot listener with CamelCase domain
Last modified: 2015-12-09 16:43:45 CET
A case sensitive comparisons in the dovecot listener can lead to deleting a shared folder instead of moving it, when * mail/dovecot/mailbox/delete=yes and * the FQDN of the server is not all lowercase and * the folder should be moved to a different mailHomeServer. Another case sensitive comparisons in the dovecot listener can lead to a shared folder not being created on the target host, when * the FQDN of the server is not all lowercase and * the folders mailHomeServer is modified.
Code change: r65704 YAML (r65705): 2015-11-18-univention-mail-dovecot.yaml
Correct fix for the current state of listener. The listener modules's LDAP filter defined via global variable "filter" is interpreted by the listener (NOT the LDAP server!). Because of this, the LDAP filter does case sensitive comparisons. So the case of the FQDN of the host has to match with the LDAP attribute "univentionMailHomeServer". Otherwise the object is ignored by the listener. Later on, in handler() the comparison is done case insensitive which now results in correct behaviour. I was unable to reproduce the faulty behaviour with the new package. OK: code change OK: functional test REOPEN: YAML → """An error in the dovecot listener could lead to the unintended deletion of a shared folder, when it should just have been renamed""" → the unintended deletion may be triggered by any LDAP object change (e.g. adjusting IMAP quota)
(In reply to Sönke Schwardt-Krummrich from comment #2) > REOPEN: YAML Fixed as discussed with Daniel. → RESOLVED / VERIFIED
<http://errata.software-univention.de/ucs/4.1/18.html>