Bug 40018 - errors in dovecot listener with CamelCase domain
errors in dovecot listener with CamelCase domain
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-4-errata
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on: 40014
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-18 15:51 CET by Daniel Tröder
Modified: 2016-01-20 13:44 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2015-11-18 15:51:44 CET
+++ This bug was initially created as a clone of Bug #40014 +++

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.
Comment 1 Daniel Tröder univentionstaff 2015-11-18 16:04:03 CET
Code change: r65706
YAML (r65707): 2015-11-18-univention-mail-dovecot.yaml
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-12-09 14:36:10 CET
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
OK: YAML
Comment 3 Janek Walkenhorst univentionstaff 2016-01-20 13:44:37 CET
<http://errata.software-univention.de/ucs/4.0/388.html>