Bug 56042 - TypeError while setting UCR variable syslog/input/udp
TypeError while setting UCR variable syslog/input/udp
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-base-files
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Philipp Hahn
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-05-05 14:11 CEST by Stefan Gohmann
Modified: 2023-05-10 13:14 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few 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.034
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023050421000437
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 Stefan Gohmann univentionstaff 2023-05-05 14:11:47 CEST
A customer reported the following error:

~# ucr set syslog/input/udp=514
Create syslog/input/udp
File: /etc/rsyslog.conf
Traceback (most recent call last):
  File "<stdin>", line 17, in <module>
TypeError: %d format: a number is required, not str
File: /etc/security/packetfilter.d/20_rsyslog.sh
~# 

~# univention-app info
UCS: 5.0-3 errata648
Installed: ucsschool=5.0 v3
Upgradable: 
~#
Comment 1 Stephan Hendl 2023-05-05 14:43:46 CEST
Same error occurs when configuring the tcp port:

root@ucsloghost:/var/log# ucr set syslog/input/tcp=10514
Setting syslog/input/tcp
File: /etc/security/packetfilter.d/20_rsyslog.sh
File: /etc/rsyslog.conf
Traceback (most recent call last):
  File "<stdin>", line 17, in <module>
Comment 2 Philipp Hahn univentionstaff 2023-05-05 14:49:13 CEST
[5.0-3] a7d8615cd5 fix(base): Broken rsyslog UCR template
 base/univention-base-files/conffiles/etc/rsyslog.conf |  6 ++----
 base/univention-base-files/debian/changelog           |  6 ++++++
 base/univention-base-files/debian/rules               |  3 +++
 base/univention-base-files/tests/rsyslog56042         | 14 ++++++++++++++
 doc/errata/staging/univention-base-files.yaml         | 11 +++++++++++
 5 files changed, 36 insertions(+), 4 deletions(-)

https://git.knut.univention.de/univention/ucs/-/commit/a7d8615cd58568d355089c687e0db288eacaea96

Package: univention-base-files
Version: 9.0.5-5A~5.0.0.202305051447
Branch: ucs_5.0-0
Scope: errata5.0-3

[5.0-3] e779761747 Bug #56042: univention-base-files 9.0.5-5A~5.0.0.202305051447
 doc/errata/staging/univention-base-files.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Dirk Wiesenthal univentionstaff 2023-05-09 22:31:05 CEST
OK: Code review
OK: Reproduction and manual tests
OK: Tests
OK: YAML