post: commit 19b1424 in bojemoi
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 4m27s
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 4m27s
This commit is contained in:
43
content/posts/commits/2026-08-03-commit-19b1424.md
Normal file
43
content/posts/commits/2026-08-03-commit-19b1424.md
Normal file
@@ -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 <noreply@anthropic.com>
|
||||
|
||||
### Files Changed
|
||||
|
||||
```
|
||||
M samsonov/nuclei_api/main.py
|
||||
```
|
||||
|
||||
### Diff Summary
|
||||
|
||||
```
|
||||
samsonov/nuclei_api/main.py | 12 ++++++++++--
|
||||
1 file changed, 10 insertions(+), 2 deletions(-)
|
||||
```
|
||||
Reference in New Issue
Block a user