Commit 9bfc787
fix(vuln-id): cap autodetected vulnerability_id_type at column width (20)
resolve_vulnerability_id_type returned the raw uppercased prefix with no
length bound, but vulnerability_id_type is CharField(max_length=20) while
vulnerability_id is unbounded text. A >20-char prefix (e.g. a dash-less
token/hash used as an id) raised DataError on save()/bulk_create (import
500) and was silently truncated by the 0277 backfill's bulk_update CAST.
Treat an over-length prefix as untyped (None) so save, bulk_create, and
the backfill all agree and never error or truncate.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent c395a2c commit 9bfc787
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | | - | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
0 commit comments