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

XMLWordPrintable

    • 7.01
    • 12
    • Severity 3 - Minor
    • 1

      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 
      

            Assignee:
            Dmytro Kushniruk (Inactive)
            Reporter:
            Andriy Yakovlev [Atlassian]
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: