Univention Bugzilla – Bug 51527
Newline character in SQL password string
Last modified: 2020-07-03 20:54:00 CEST
Created attachment 10397 [details] Bug Screenshot 10-ucs.php Bug got created by Bug #49587 solution. This bug makes Horde unusable with App version 4.0.0-12. Conffile "10-ucs.php" reads the SQL password from file "/etc/horde.secret" with python function open(). This function adds a Newline character ('\n') to the string output, which falsify the $conf['sql']['password'] attribute value. Horde can't reach it's own Database anymore. A fix is attached.
Created attachment 10398 [details] Error on Web surface
Created attachment 10399 [details] Patch 10-ucs.php
Can you please attach a unified diff (diff -u) with the whole filepath.
Created attachment 10400 [details] unified diff Patch (In reply to Florian Best from comment #3) > Can you please attach a unified diff (diff -u) with the whole filepath.
When does this happen? For all installations, after an update, "sometimes" ?
This bug occurs on longer existing Customer systems, due to an EOL character in file /etc/horde.secret, which apparently got carried over through upgrade. This was manually removed and fixed. Report can be closed as invalid.
The patch is against a package which doesn't exist in the Univention Products but in a customer fork/package. The bug therefore needs to be tracked elsewhere.
(In reply to Florian Best from comment #7) > The patch is against a package which doesn't exist in the Univention > Products but in a customer fork/package. > The bug therefore needs to be tracked elsewhere. Oh, I got wrong information from Hendrik here. The correct git repository for the patch is: https://git.knut.univention.de/univention/components/horde/