From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. f05b39059a4c50a08916200b76c560cfa5219f9c
Date: Mon, 09 Mar 2026 11:54:32 +0000 (UTC) [thread overview]
Message-ID: <4fTwRD4YZpz2xcq@people01.haj.ipfire.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via f05b39059a4c50a08916200b76c560cfa5219f9c (commit)
from eead020f64d6def4853ad5e361567120d062197d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f05b39059a4c50a08916200b76c560cfa5219f9c
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Mon Mar 9 11:54:02 2026 +0000
suricata-reporter: Backport patch to render if DNS queries is empty
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
lfs/suricata-reporter | 1 +
...ricata-reporter-0.7-fix-empty-dns-queries.patch | 39 ++++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 src/patches/suricata-reporter-0.7-fix-empty-dns-queries.patch
Difference in files:
diff --git a/lfs/suricata-reporter b/lfs/suricata-reporter
index 6c99388c9..c56e0b5da 100644
--- a/lfs/suricata-reporter
+++ b/lfs/suricata-reporter
@@ -70,6 +70,7 @@ $(subst %,%_BLAKE2,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/suricata-reporter-0.7-fix-empty-dns-queries.patch
cd $(DIR_APP) && \
./configure \
--prefix=/usr \
diff --git a/src/patches/suricata-reporter-0.7-fix-empty-dns-queries.patch b/src/patches/suricata-reporter-0.7-fix-empty-dns-queries.patch
new file mode 100644
index 000000000..8099fbe8d
--- /dev/null
+++ b/src/patches/suricata-reporter-0.7-fix-empty-dns-queries.patch
@@ -0,0 +1,39 @@
+From 15c53ed2cf4545d94cc11220295278bcdeba5000 Mon Sep 17 00:00:00 2001
+From: Michael Tremer <michael.tremer@ipfire.org>
+Date: Mon, 9 Mar 2026 11:48:51 +0000
+Subject: [PATCH] generator: Fix crash if no further DNS queries info exists
+
+Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
+---
+ src/suricata-report-generator.in | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/src/suricata-report-generator.in b/src/suricata-report-generator.in
+index e4b4db9..e08005a 100644
+--- a/src/suricata-report-generator.in
++++ b/src/suricata-report-generator.in
+@@ -631,13 +631,14 @@ class ReportGenerator(object):
+ line = []
+
+ # Append all queries
+- for query in json.loads(row.dns_queries):
+- line.append(
+- "%s: %s" % (_("Query"), "%(rrname)s (%(rrtype)s)" % query),
+- )
+-
+- # Append the line to the signature
+- signature.append(" - ".join(line))
++ if row.dns_queries:
++ for query in json.loads(row.dns_queries):
++ line.append(
++ "%s: %s" % (_("Query"), "%(rrname)s (%(rrtype)s)" % query),
++ )
++
++ # Append the line to the signature
++ signature.append(" - ".join(line))
+
+ # HTTP
+ elif row.app_protocol == "http":
+--
+2.47.3
+
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2026-03-09 11:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4fTwRD4YZpz2xcq@people01.haj.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox