Bug 56521 - resync fetchmailrc does not meet user expectation
resync fetchmailrc does not meet user expectation
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-6-errata
Assigned To: Juan Carlos
Christian Castens
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-09-04 12:10 CEST by Wolfgang Bayrhof
Modified: 2024-03-07 13:07 CET (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023080321000237
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 Wolfgang Bayrhof univentionstaff 2023-09-04 12:10:17 CEST
The command "univention-directory-listener-ctrl resync fetchmailrc" does not resync the known single-drop and multi-drop configurations to the configuration file /etc/fetchmailrc as expected. In fact, the complete configuration is added to the configuration file and the former content remains and is completely ignored. Therefore duplicate entries will be created and in larger customer environments this result may be undetected for a while.

fetchmail resync command should work like the other resync commands and check for missing and duplicate entries and correct the file.

There was no indication and/or error message in the listener.log that the configuration was just dumped out to fetchmailrc. It contains in debug level 2:

04.09.23 11:55:52.797  LISTENER    ( INFO    ) : postrun handler: fetchmailrc (prepared=0)

and 

04.09.23 11:55:55.557  LISTENER    ( WARN    ) : initializing module fetchmailrc
04.09.23 11:55:56.809  LISTENER    ( WARN    ) : finished initializing module fetchmailrc with rv=0
Comment 1 Philipp Hahn univentionstaff 2023-09-04 12:18:41 CEST
This is not a generic UDL `univention-directory-listener-ctrl resync` issue, but specific to the implementation of the "Fetchmail" UDL module.

Standard disclaimer: `univention-directory-listener-ctrl resync` must be used carefully!
Comment 3 Juan Carlos univentionstaff 2024-03-04 12:18:41 CET
Changes:

The user resync does not duplciate existing entries on the file.
Add test to check the listener resync


Package:

Package: univention-fetchmail
Version: 13.0.8-2
Branch: ucs_5.0-0
Scope: errata5.0-6


Package: ucs-test
Version: 10.0.20-46
Branch: ucs_5.0-0
Scope: errata5.0-6

Commits:

280f2d048d63c922944cce444be486aea3d9d0f1
Comment 4 Christian Castens univentionstaff 2024-03-04 12:35:40 CET
QA:
  advisories: OK
  no duplication of entries in fetchmailrc after running "univention-directory-listener-ctrl resync fetchmailrc": OK
  new test: OK

Waiting for the overnight test run
Comment 5 Christian Castens univentionstaff 2024-03-05 12:04:25 CET
QA:
  no related errors in the overnight test run: OK