DeepSeek V4 Pro · 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
- 5
- Comments matching a bug
- 2
- Comments not matching
- 3
- Cost of this PR
- $1.998
Published comments (5)
PropertyResourceBundle decodes UTF-8 properties as ISO-8859-1 — Every non-ASCII translation is decoded as mojibake before HTML comparison, so sanitize, containsHtml, santizeAnchors, and their diagnostics can misreport or garble results. Construct the bundles from a UTF-8 reader such as new PropertyResourceBundle(new InputStreamReader(fis, StandardCharsets.UTF_8)).
Use i18next {{...}} placeholders for multivalued-size error — The account console will render literal {0}, {1}, {2}, and {2,choice,...} text for multivalued-size errors. Keep the {{0}}/{{1}}/{{2}} syntax in the React bundles; the identical change in js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties breaks the admin console the same way.
Italian text overwrote Lithuanian totpStep1 and loginTotpStep1 translations — Lithuanian users are shown Italian instructions for totpStep1 and loginTotpStep1. Restore the Lithuanian translation for both keys in the account and login files. **Also found in:** - `themes/src/main/resources-community/theme/base/login/messages/messages_lt.properties:71-71`
Anchor validation compares tags positionally instead of by membership — Reordering identical anchors or using only the second of two source anchors compares against the wrong English anchor and reports a missing tag. Check membership of each translated anchor against the full set of English anchors instead of consuming englishMatcher positionally.
totpStep1 uses Traditional Chinese in Simplified Chinese locale — Users of the zh_CN locale see the wrong character variant. Replace totpStep1 with Simplified Chinese text such as '在您的手机上安装以下应用程序之一:'.