https://bugs.contribs.org/show_bug.cgi?id=10776
Bug ID: 10776
Summary: /etc/fail2ban/jail.conf/45wordpress template generates
errors when expanded
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: x86_64
OS: ---
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: smeserver-fail2ban
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
Created attachment 6193
--> https://bugs.contribs.org/attachment.cgi?id=6193&action=edit
Edited 45wordpress template
I noticed the following in the messages log file after doing a kernel update
today:
May 16 07:08:19 mailgate esmith::event[1040]: expanding /etc/fail2ban/jail.conf
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Bareword found
where operator expected at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 32, near ""
smeserver-sendmail[name="Wordpress"
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: #011(Missing
operator before Wordpress?)
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Unquoted string
"hard" may clash with future reserved word at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 32.
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: String found where
operator expected at /etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress
line 32, near ")",dest=$maildest]\n""
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: #011(Missing
operator before ",dest=$maildest]\n"?)
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Bareword found
where operator expected at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 48, near ""
smeserver-sendmail[name="Wordpress"
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: #011(Missing
operator before Wordpress?)
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Unquoted string
"soft" may clash with future reserved word at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 48.
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: String found where
operator expected at /etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress
line 48, near ")",dest=$maildest]\n""
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: #011(Missing
operator before ",dest=$maildest]\n"?)
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Bareword found
where operator expected at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 64, near ""
smeserver-sendmail[name="Wordpress"
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: #011(Missing
operator before Wordpress?)
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Unquoted string
"xmlrpc" may clash with future reserved word at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 64.
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: String found where
operator expected at /etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress
line 64, near ")",dest=$maildest]\n""
May 16 07:08:20 mailgate esmith::event[1040]: WARNING in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: #011(Missing
operator before ",dest=$maildest]\n"?)
May 16 07:08:20 mailgate esmith::event[1040]: ERROR in
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress: Program fragment
delivered error <<syntax error at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 32, near ""
smeserver-sendmail[name="Wordpress "
May 16 07:08:20 mailgate esmith::event[1040]: syntax error at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 48, near ""
smeserver-sendmail[name="Wordpress "
May 16 07:08:20 mailgate esmith::event[1040]: syntax error at
/etc/e-smith/templates//etc/fail2ban/jail.conf/45wordpress line 64, near ""
smeserver-sendmail[name="Wordpress ">> at template line 1
May 16 07:08:20 mailgate esmith::event[1040]: ERROR: Template processing failed
for //etc/fail2ban/jail.conf: 15 fragments generated warnings, 1 fragment
generated errors
May 16 07:08:20 mailgate esmith::event[1040]: at
/etc/e-smith/events/actions/generic_template_expand line 56.
Investigation reveals that 3 strings are incorrectly formatted so I edited the
template & re-expanding it now produces no errors.
I have attached the edited template fragment here.
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/