43 lines
1.0 KiB
Markdown
43 lines
1.0 KiB
Markdown
---
|
|
title: "[bojemoi] fix(zap-scanner): handle DOES_NOT_EXIST + add timeout to scan wait loops"
|
|
date: 2026-03-26T18:34:02+01:00
|
|
draft: false
|
|
tags: ["commit", "bojemoi", "main"]
|
|
categories: ["Git Activity"]
|
|
summary: "Commit 2195edf par Betty dans bojemoi"
|
|
author: "Betty"
|
|
---
|
|
|
|
## Commit `2195edf`
|
|
|
|
| | |
|
|
|---|---|
|
|
| **Repository** | bojemoi |
|
|
| **Branch** | `main` |
|
|
| **Author** | Betty |
|
|
| **Hash** | `2195edf5009018178f410e8e1a197ae412d059d4` |
|
|
|
|
|
|
### Description
|
|
|
|
- wait_for_active_scan_completion: break on DOES_NOT_EXIST response
|
|
(ZAP restarted → old scan ID gone), add 3600s timeout
|
|
- wait_for_spider_completion: same fix, 1800s timeout
|
|
- Add timeout=10s to requests.get() calls in both loops
|
|
- Scanner was stuck since 2026-03-20 polling dead scan ID 3
|
|
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
|
|
### Files Changed
|
|
|
|
```
|
|
M oblast-1/zap_scanner.py
|
|
```
|
|
|
|
### Diff Summary
|
|
|
|
```
|
|
oblast-1/zap_scanner.py | 55 +++++++++++++++++++++++++++++++++----------------
|
|
1 file changed, 37 insertions(+), 18 deletions(-)
|
|
```
|