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

JIRA doesn't trim spaces from values in jira-config.properties

    XMLWordPrintable

Details

    Description

      Summary

      JIRA doesn't trim spaces from values in jira-config.properties file

      Steps to Reproduce

      1. Create line with space in the end:
         jira.index.issue.threads = 20 
        

      Expected Results

      It works fine.

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      2016-11-09 12:12:28,777 JiraTaskExectionThread-2 ERROR admin 731x1190x1 5mr8iq 127.0.0.1 /secure/admin/IndexReIndex.jspa [c.a.j.config.properties.PropertiesUtil] 
      Exception whilst trying to find value for property 'jira.index.issue.threads'. Defaulting to 20. java.lang.NumberFormatException: For input string: "20 "
      

      Workaround

      Check config file and delete spaces:

      sed 's/[ ]$//' jira-config.properties  > jira-config.properties 
      

      Attachments

        Issue Links

          Activity

            People

              4d7ea414c7a1 Dmytro Kushniruk (Inactive)
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: