GLM-5.3 Flash · Heavy
add-html-sanitizer-for-translated-message-resources-keycloak
Keycloak · Java · M · 100–299 lines · 6 files
The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.
- Gold bugs found
- 2 of 7
- Comments published
- 3
- Comments matching a bug
- 2
- Comments not matching
- 1
- Cost of this PR
- $0.309
Published comments (3)
JS console uses i18next {{n}} interpolation, but new value uses Java ChoiceFormat — The console renders this value with i18next, which ignores single braces and has no choice format, so users will see raw placeholders instead of the attribute name and counts. Use the `{{n}}` form without the choice, as also needed in the account-ui messages file.
Common prefix/suffix scans can overlap, causing StringIndexOutOfBoundsException — When the prefix scan overlaps the suffix scan, the `sanitized.substring` and `value.substring` calls throw StringIndexOutOfBoundsException and the verifier crashes instead of reporting the illegal HTML. Clamp `end` so suffix and prefix never overlap, for both strings.
Uncaught RuntimeException when English reference file is missing or unresolvable — The RuntimeException from reading the English reference escapes `verify()`, aborting the whole run at the first missing file instead of recording a per-file diagnostic. Skip with a message in `messages` when the reference file is missing or unresolvable.