Bug 40014

Summary: errors in dovecot listener with CamelCase domain
Product: UCS Reporter: Daniel Tröder <troeder>
Component: Mail - DovecotAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Sönke Schwardt-Krummrich <schwardt>
Severity: normal    
Priority: P5 CC: walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-0-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 40018    

Description Daniel Tröder univentionstaff 2015-11-18 12:32:12 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.
Comment 1 Daniel Tröder univentionstaff 2015-11-18 15:48:00 CET
Code change: r65704
YAML (r65705): 2015-11-18-univention-mail-dovecot.yaml
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-12-09 14:16:36 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
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)
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-12-09 14:35:45 CET
(In reply to Sönke Schwardt-Krummrich from comment #2)
> REOPEN: YAML

Fixed as discussed with Daniel.
→ RESOLVED / VERIFIED
Comment 4 Janek Walkenhorst univentionstaff 2015-12-09 16:43:45 CET
<http://errata.software-univention.de/ucs/4.1/18.html>