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

Broken "Enable Profiling" button if button value contains special characters

    XMLWordPrintable

Details

    Description

      This bug can potentially break the profiling activation in Confluence.

      Steps to reproduce:

      1. Install and activate a foreign language pack. Japanese and Chinese are good examples.
      2. Activate profiling (admin/viewlog4j.action) by clicking on the "Enable Profiling" button. Activation fails.

      HTML
      <input type="submit" name="profilingButtonValue" value="プロファイル作成を有効にする">
      

      This one always returns false:

      com.atlassian.confluence.admin.actions.ConfigureLog4jAction
          public void setProfilingButtonValue(String buttonValue)
          {
              profilingOn = getText("loglevel.profilingOn").equals(buttonValue);
          }
      

      As a workaround, edit the button value as defined inside the plugin's properties file. For instance, in the Japanese language pack:

      loglevel.profilingOn=\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3092\u6709\u52b9\u306b\u3059\u308b
      

      Edit the value to only consist English characters such as:

      loglevel.profilingOn=Enable Profiling
      

      (This will, of course, display the button value in English rather than Japanese).

      Attachments

        Activity

          People

            akdominguez Katrina Walser (Inactive)
            amohdaris Azwandi Mohd Aris (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: