Details
-
Bug
-
Resolution: Fixed
-
Low
-
8.5.0
-
Severity 3 - Minor
-
-
CtB - Improve Existing
Description
Issue Summary
This is reproducible on Data Center: yes
I18n keys in Confluence DC Audit log are translated into Confluence system language. This behavior can be observed in all Confluence DC versions since 8.5.0. It has side effects in some cases. For example, if a plugin subscribes to the Audit event and expects a specific I18n key, it may not work as expected when the language is changed and the i18n key is translated to this language.
Steps to Reproduce
- Ensure the Confluence language is English (US)
- Change base URL in Confluence General configuration page
- Observe new record in AO_C77861_AUDIT_ENTITY table
- observe i18nKey = "Base URL" in CHANGE_VALUES column
Change Confluence language to Russian- Change base URL in Confluence General configuration page
- Observe new record in AO_C77861_AUDIT_ENTITY table
- observe i18nKey = "Базовый URL-адрес" in CHANGE_VALUES column
Expected Results
i18nKey retains the "audit.logging.com.atlassian.confluence.setup.settings.Settings.getBaseUrl" when the Confluence system language is changed
Actual Results
i18nKey changes the value following Confluence system language, e.g. "Base URL", "Базовый URL-адрес" etc.
Workaround
- Translate the key to the system language using I18nResolver with browser-agnostic locale
- Perform the matching
Attachments
Issue Links
- relates to
-
CONFDEVSRV-219 Loading...