Commit ca583d0
fix(findings): widen title column from VARCHAR(255) to VARCHAR(512) for nested-extract paths
Credentials-detector formats title as f"Hardcoded credential in {path}";
on deeply-nested firmware extracts (e.g. RespArray V1.12 with paths
through .tar.xz_extract → .gzip_extract → .gzip_extract → etc/.../delegates.xml,
~290 chars), the per-finding flush triggered StringDataRightTruncationError
on findings.title and rolled back the entire /security/audit transaction —
no findings persisted even though every scanner ran successfully (~12 min
of work lost). Widening to 512 matches the existing file_path column width.
Migration: hand-written using the 1f6c72decc84 precedent (autogenerate is
currently blocked by an orthogonal model-registration gap — hardware_firmware
referenced via FK from SbomVulnerability but not exported via app/models/__init__.py;
fixing that registration is out of scope for this fix per Rule #19).
Verified post-rebuild: DB column width = 512, Finding mapper width = 512,
alembic head = d4a7c8b6e2f1.
Source: .planning/intake/gui-smoke-bugs-2026-04-24.md Bug #3 (HIGH).
Rule #20: rebuilt backend+worker (class-shape change to ORM mapper).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a1c5d54 commit ca583d0
2 files changed
Lines changed: 62 additions & 1 deletion
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments