JIRA Data Center, Replication Folder path not able to be updated

XMLWordPrintable

    • 6.04
    • 4
    • Severity 3 - Minor

      Summary

      Setting up JIRA Data Center, 'Replication Folder' path is not able to be update accordingly.

      • The path is not picked up from the jira.secondary.home value

      Environment

      • JIRA Data Center

      Steps to Reproduce

      1. Set JIRA 6.4.12 with JDC license
      2. gg > Replication
      3. Enable, it will default at jirahome/secondary/
      4. Make the changes in jira-config.properties to add jira.secondary.home, restart
      5. From system info, the change for jira.seconday.home is updated

      Expected Results

      • Updated path in jira.secondary.home should be reflected in "Replication Folder" path

      Actual Results

      • Changes not reflected in "Replication Folder" path, even after re-setting it

      Notes

      Investigation by majones

      In com.atlassian.jira.config.util.SecondaryJiraHome the line below, customPath is always returning null if the value jira.secondary.home is set which causes the secondary directory to use it's default.

      This indicates that we might not be setting the property correctly, or picking it up in the right way. Most likely a bug at this stage.

      final String customPath = applicationProperties.getString(APKeys.JIRA_SECONDARY_HOME);
      

      Below is the method, although I have been unable to identify the offending code.

          protected void refreshLocation(final boolean isEnabled)
          {
              if(isEnabled)
              {
                  final String customPath = applicationProperties.getString(APKeys.JIRA_SECONDARY_HOME);
                  this.location = new File(StringUtils.isNotBlank(customPath) ? customPath : getDefaultPath());
              }
              else
              {
                  this.location = null;
              }
      
          }
      

      Workaround

      No workaround for the time being

              Assignee:
              Wolfgang Kritzinger
              Reporter:
              Azfar Masut (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: