[xwiki/xwiki-platform] f89933: [Misc] Extract language cookie creation into a sin...
Branch: refs/heads/XWIKI-sonar-lang-cookie Home: https://github.com/xwiki/xwiki-platform Commit: f89933db80e9eacab89dfa9a0a888d3304add5e5 https://github.com/xwiki/xwiki-platform/commit/f89933db80e9eacab89dfa9a0a888... Author: Vincent Massol <[email protected]> Date: 2026-07-07 (Tue, 07 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java Log Message: ----------- [Misc] Extract language cookie creation into a single method Deduplicate the repeated language/interface-language cookie creation blocks in XWiki.java into a single addLanguageCookie() helper, and add the SonarQube ignore for the java:S3330 (HttpOnly) and java:S2092 (secure) rules there: the cookie only stores a validated, non-sensitive locale identifier and thus doesn't need those flags, unlike the sensitive authentication cookies. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications