From 2630eb58fe5c2db091aca56ce602694f64256b76 Mon Sep 17 00:00:00 2001 From: grafana-watcher Date: Mon, 3 Aug 2026 23:26:38 +0200 Subject: [PATCH] post: commit 19b1424 in bojemoi --- .../commits/2026-08-03-commit-19b1424.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 content/posts/commits/2026-08-03-commit-19b1424.md diff --git a/content/posts/commits/2026-08-03-commit-19b1424.md b/content/posts/commits/2026-08-03-commit-19b1424.md new file mode 100644 index 0000000..36c4e5a --- /dev/null +++ b/content/posts/commits/2026-08-03-commit-19b1424.md @@ -0,0 +1,43 @@ +--- +title: "[bojemoi] fix(nuclei-api): handle JSON array output format from nuclei -json-export" +date: 2026-08-03T23:26:38+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 19b1424 par grafana-watcher dans bojemoi" +author: "grafana-watcher" +--- + +## Commit `19b1424` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | grafana-watcher | +| **Hash** | `19b1424a58d97d247ad17c235130305cb59e8620` | + + +### Description + +Nuclei v3.x writes a single-line JSON array (not JSONL) to the export file. +The previous JSONL parser appended the entire array as one item, causing +'list' object has no attribute 'get' in push_to_defectdojo() and /results. + +Fix: detect list vs dict in the per-line parser and extend/append accordingly. +Applies to both the internal dojo import loop and the /results API endpoint. + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M samsonov/nuclei_api/main.py +``` + +### Diff Summary + +``` + samsonov/nuclei_api/main.py | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) +```