Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-94973

Changing General configuration in Confluence DC results in Audit log events with incorrect i18n keys in AUDIT_ENTITY.CHANGE_VALUES column

    XMLWordPrintable

Details

    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

      1. Ensure the Confluence language is English (US)
      2. Change base URL in Confluence General configuration page
      3. Observe new record in AO_C77861_AUDIT_ENTITY table
        1. observe i18nKey = "Base URL" in CHANGE_VALUES column

      4. Change Confluence language to Russian 
      5. Change base URL in Confluence General configuration page
      6. Observe new record in AO_C77861_AUDIT_ENTITY table
        1. 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

      1. Translate the key to the system language using I18nResolver with browser-agnostic locale
      2. Perform the matching

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              71cc7f48109b Alex Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: