Skip to content

Commit 5814c91

Browse files
REL: 1.2.3
CSV special case corrections, extra data in notifications, documentation
1 parent a4d23c2 commit 5814c91

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

CHANGELOG.md

+30
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@ CHANGELOG
22
=========
33

44

5+
1.2.3: CSV special case corrections, extra data in notifications, documentation (2023-10-13)
6+
--------------------------------------------------------------------------------------------
7+
8+
* Corrections to handling of extra data in mailgen template preview
9+
* Corrections for special cases in CSV data
10+
* Extended Documentation
11+
12+
## Backend
13+
* convert example data to Event to handle extra data in database insert:
14+
for the mailgen preview, convert the example data to an IntelMQ event
15+
and before submitting it to the database, to a dict with extra as a
16+
string.
17+
Previously, extra-data provided by the user could not be inserted,
18+
raising an error
19+
20+
## Frontend
21+
* frontend: detect if csv data header can be used as field name and use it:
22+
if the csv column name (table header) contains a legitimate IntelMQ
23+
field name, use this one and skip the further sanitation steps
24+
* frontend: handle CSV data with no body, but only with a header:
25+
if the CSV data contains just one line and the header option is active,
26+
the data is body/content-less
27+
handle these special cases by aborting the parse and disabling the
28+
spinner
29+
30+
## Documentation
31+
* docs: document format spec (mailgen) influence
32+
* docs: change URLs to rendered sphinx docs in README
33+
34+
535
1.2.2: Validate Template Preview Data (2023-09-12)
636
--------------------------------------------------
737

client/src/components/WebinputCSV.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ export default ({
827827
errorMessage: null,
828828
showErrorModal: false,
829829
mailgenTargetGroups: [],
830-
clientVersion: "1.2.2",
830+
clientVersion: "1.2.3",
831831
templateDeletionModal: false,
832832
templateToDelete: {'index': null, 'template_name': null},
833833
mailgenTemplate: '',

debian/changelog

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
intelmq-webinput-csv (1.2.3-1) UNRELEASED; urgency=medium
2+
3+
* backend: convert example data to Event to handle extra data in database insert:
4+
for the mailgen preview, convert the example data to an IntelMQ event
5+
and before submitting it to the database, to a dict with extra as a
6+
string.
7+
Previously, extra-data provided by the user could not be inserted,
8+
raising an error
9+
* docs: document format spec (mailgen) influence
10+
* docs: change URLs to rendered sphinx docs in README
11+
* frontend: detect if csv data header can be used as field name and use it:
12+
if the csv column name (table header) contains a legitimate IntelMQ
13+
field name, use this one and skip the further sanitation steps
14+
* frontend: handle CSV data with no body, but only with a header:
15+
if the CSV data contains just one line and the header option is active,
16+
the data is body/content-less
17+
handle these special cases by aborting the parse and disabling the
18+
spinner
19+
20+
-- Sebastian Wagner <swagner@intevation.de> Fri, 13 Oct 2023 17:48:08 +0200
21+
122
intelmq-webinput-csv (1.2.2-1) stable; urgency=medium
223

324
* Validate Template Preview Data: The user data, (first line of parsed input data), used for the template content validation and preview, validated (sanitized) by IntelMQ before using it for the template preview, otherwise syntactically incorrect values could lead to PostgreSQL errors. Invalid fields are ignored and replaced by example data.

intelmq_webinput_csv/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2017-2018 nic.at GmbH <wagner@cert.at>, 2022-2023 Bundesamt für Sicherheit in der Informationstechnik
22
# SPDX-License-Identifier: AGPL-3.0-or-later
3-
__version_info__ = (1, 2, 2)
3+
__version_info__ = (1, 2, 3)
44
__version__ = '.'.join(map(str, __version_info__))

0 commit comments

Comments
 (0)