Bug 56008 - Fetchmail error when using a ";" in fetchmail password
Fetchmail error when using a ";" in fetchmail password
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-4-errata
Assigned To: Juan Carlos
Christian Castens
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-04-21 13:09 CEST by Christian Castens
Modified: 2023-07-12 13:57 CEST (History)
0 users

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: 2023041821000458, 2023052421000202, 2023052421000391, 2023052421000211, 2023052421000248, 2023051621000736, 2023051421000169, 2023050421000366, 2023062221000401, 2023062921000184
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 Christian Castens univentionstaff 2023-04-21 13:09:58 CEST
Version: 5.0-3 errata642

Remark: Hallo Liebes Team,
ich habe ein ; im Fetchmail Passwort. Kann das diesen Fehler ausgelöst haben?

Error:
Interner Server-Fehler in "udm/syntax/choices (users/user)".
Request: udm/syntax/choices (users/user)

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 101, in
_decorated
    return method(*args, **kwargs)
  File "%PY3%/univention/management/console/ldap.py", line 171, in _decorated
    result = func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 1019,
in _thread
    return read_syntax_choices(syntax, options, ldap_connection=ldap_connection,
ldap_position=ldap_position)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 1369,
in read_syntax_choices
    UDM_Error(e).reraise()
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 365, in
reraise
    six.reraise(self.__class__, self, self.exc_info[2])
  File "%PY3%/six.py", line 692, in reraise
    raise value.with_traceback(tb)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 1343,
in read_syntax_choices
    for choice in syn.get_umc_choices(ldap_connection, options):
  File "%PY3%/univention/admin/syntax.py", line 5964, in get_umc_choices
    return syn._get_choices(lo, options)
  File "%PY3%/univention/admin/syntax.py", line 6006, in _get_choices
    obj.open()
  File "%PY3%/univention/admin/handlers/users/user.py", line 1169, in open
    univention.admin.handlers.simpleLdap.open(self)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1101, in open
    self.call_udm_property_hook('hook_open', self)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1077, in
call_udm_property_hook
    func(module)
  File "%PY3%/univention/admin/hook.py", line 208, in hook_open
    obj[self.udm_attribute_name] = new_value
  File "%PY3%/univention/admin/handlers/__init__.py", line 436, in __setitem__
    raise univention.admin.uexceptions.valueInvalidSyntax("%s: %s" % (key, err),
property=key)
univention.management.console.modules.udm.udm_ldap.UDM_Error: Falsche Syntax:
FetchMailSingle: Falsche Syntax: Zu viele Parameter.

Role: domaincontroller_master

Errno: ab18ae1aac0f462f2c92cc87889643a0
Comment 1 Maximilian Janßen univentionstaff 2023-06-20 12:49:14 CEST
Version: 5.0-3 errata677
Comment 2 Maximilian Janßen univentionstaff 2023-06-20 15:41:23 CEST
Version: 5.0-3 errata660
Remark: User verwaltung in der Benutzerverwaltung in GUI geöffnet. Der User wird als Sammelstelle für Gruppen-E-Mails verwendet
Comment 3 Maximilian Janßen univentionstaff 2023-06-27 12:33:26 CEST
2023042921000026 5.0-3 errata648 Access Users module ==> error
I think FetchMailSingle vs old FetchMail is the issue
2023042821000206 5.0-3 errata645 zu dem Fehler kommt es wenn man die einzelnen Benuzter aufruft. Bei Euch werden die Passwörter ausgelesen und wenn die einen : beinhalten, kommt es zu der Fehlermeldung. Installation Kopano mit fetchmail.
2023042521000211 5.0-3 errata645 Rufe ich die Benutzerverwaltung im Portal auf bekomme ich diesen Fehler. Jetzt habe ich schon einiges raus gefunden: Deinstalliert man Kopano und den Fetschmail, so kann man die Benutzerverwaltung wieder ohne Fehler bedienen. Installiert man wieder den Fetchmail kommt es wieder zu den Fehlermeldungen. Man kann trotz anfänglicher Fehlermeldungen die einzelnen Benutzer editieren, bis auf einen, der lässt sich gar nicht mehr aufrufen. Ich habe den Server neu installiert und tatsächlich bei Eingabe von dem einen Benutzer mit seinem bisherigen Passwort -->  ***[password containing a colon]***   kam es wieder zu den schon bekannten Fehlermeldungen. Auch diesmal konnte man diesen einen Benutzer danach nicht mehr editieren. Gibt man dem Benuzter nach einer nochmaligen Neuinstallation ein anderes Passwort, kommt es zu keinen Störungen mehr.
2023042021000775 5.0-3 errata645 Kann teilweise die Benutzer als Administrator nicht mehr öffen. Die Fehlermeldung kommt nach der Anwahl des Benutzers.
2023042021000721 5.0-3 errata645 So bald man die Benutzer oder die Gruppen aufruft. Alle Updates sind drin, System ist aktuell. Rest funktioniert einwandfrei.
2023042021000677 5.0-3 errata645
2023041921000483 5.0-3 errata572
2023041321000038 5.0-3 errata618
2023040321000315 5.0-3 errata632
2023033021000641 5.0-3 errata632 When I access Groups module, no errors when I see the list of groups. But if I click on a group to edit, this error shows
2023033021000632 5.0-3 errata632
2023032721000335 5.0-3 errata622 IMAP-Abruf wurde hinterlegt für diesen User.
2023032621000239 5.0-3 errata622
2023032221000193 5.0-3 errata614
2023032221000184 5.0-3 errata614
Comment 4 Juan Carlos univentionstaff 2023-07-11 13:40:48 CEST
Changes:

The representation of fetchmail attributes in ldap has changed to avoid errors when the ";" character appears in one of its fields.

Commits:

univention-fetchmail.yaml
ddbb4167a6ec | Bug #56008: advisory
dae7730aff61 | Bug #56008: store fetchmail complex attributes as json

univention-fetchmail (13.0.6-2)
dae7730aff61 | Bug #56008: store fetchmail complex attributes as json


Packages:

Package: univention-fetchmail
Version: 13.0.6-2
Branch: ucs_5.0-0
Scope: errata5.0-4
Comment 5 Christian Castens univentionstaff 2023-07-11 13:43:42 CEST
QA:
  - New representation of fetchmail attributes avoids reported error:  OK
  - No related tracebacks/errors in logfile:  OK
  - Advisories:  OK
Comment 7 Juan Carlos univentionstaff 2023-07-11 14:24:03 CEST
Changes:

Fix type error on fetchmailrc listener.

Commits:

univention-fetchmail (13.0.6-3)
41b7464f613b | fixup! Bug #56008: store fetchmail complex attributes as json

Debian:

Package: univention-fetchmail
Version: 13.0.6-3
Branch: ucs_5.0-0
Scope: errata5.0-4
Comment 8 Juan Carlos univentionstaff 2023-07-12 11:40:52 CEST
A manual run of the joinscript '92univention-fetchmail-schema.inst' is necessary for the changes to be applied. If fetchmail is installed on a non-primary server, the primary and non-primary servers must be updated to the same errata level before reexecuting the joinscript.
Comment 9 Christian Castens univentionstaff 2023-07-12 13:57:20 CEST
<https://errata.software-univention.de/#/?erratum=5.0x737>