Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-20445

Some Gadget configurations can't be saved when running JIRA and selecting Turkish as region format

XMLWordPrintable

      Symptoms

      When running JIRA on Windows and selecting Turkish as OS regional format, JIRA can't save some Gadget configurations change (e.g. filter id, project id).

      When saving the configuration of 'Filter Results' Gadget, the 'filterId' is passed as '' in backend Insert SQL and saved blank in gadgetuserpreference table at DB side. SQL logging shows entries like the following in the logs:

      INSERT INTO dbo.gadgetuserpreference (ID, PORTLETCONFIGURATION, USERPREFKEY, USERPREFVALUE) VALUES ('10523', '10051', 'filterId', '')
      

      When accessing a dashboard after it's saved, messages like the following will appear in the logs:

      [atlassian.jira.dashboard.JiraDashboardStateStoreManager] Stored state for dashboard with id '10051' is not the same as in memory state.  Trying to rewrite the entire state...
      

      Steps to Reproduce

      1. shutdown JIRA instance
      2. Go to Windows Console Panel, open 'Regional and Language Options', change Regional Format to 'Turkish'
      3. reboot JIRA instance
      4. Go to an own Dashboard, click 'Add Gadget' and add 'Filter Results' Gadget
      5. In Dashboard, select filter for new added Gadget and save it, then get the filter results correctly displaying in new created Gadget
      6. Move to another page, e.g. click on 'Projects'
      7. Come back Dashboard page again, then find the just created 'Filter Results' Gadget needs to be re-configured

      Workaround

      Change the java user language settings to use US English instead of Turkish.

      Under Linux/UNIX/OS X

      Edit your setenv.sh file and add the following options to your JAVA_OPTS setting:

      -Duser.language=en
       -Duser.region=US

      When Running under Windows as a Service

      1. Find the Tomcat service ID for your JIRA instance by right-clicking the service name in the Services control panel. You will see a string like:
        c:/path/to/tomcat/bin/tomcat5.exe //RS//ABC123412341

        You can actually copy the whole string (which we didn't do).

      2. Paste the string into notepad or another tool
      3. Change the //RS// to //US//
      4. Add the following to the end of the command:
        ++JvmOptions="-Duser.language=en -Duser.region=US"
      5. Open a command shell
      6. Navigate to the binary directory for your tomcat installation
      7. Run the command you've created
      8. Restart the JIRA service

      When Running under Windows (but Not as a Service)

      Edit your setenv.bat file and add the following options to your JAVA_OPTS setting:

      -Duser.language=en
       -Duser.region=US

              Unassigned Unassigned
              kren Kelson Ren
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: