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

Wildcard IP address in Java option http.nonProxyHosts does not work

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Setup JIRA server at http://192.168.1.187:8080
      2. Setup a Stash server at http://192.168.1.186:7990
      3. Add the following JAVA option into JIRA and restart the server:
        JVM_SUPPORT_RECOMMENDED_ARGS="-Dhttp.proxyHost=192.168.2.18 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=192.168.2.18 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|192.168.1.*"
        
      4. Create the Application Link from Stash server to JIRA server
        During creation, the following warning appear:
        There is a problem communicating directly between these two applications. This may affect the behaviour of some integration features.
        
      5. The Application Links are created successfully in both servers but the following warning appear when accessing Application Links page in JIRA server:
        Application 'Stash' seems to be offline. Click here to Relocate.
        

        The following error is found in JIRA log too:

        2014-05-26 20:57:32,380 http-bio-8615-exec-24 ERROR kahloun.foong 1257x183x2 o2mmd4 10.60.2.187 /rest/applinks/2.0/applicationlinkForm/manifest.json [core.rest.ui.CreateApplicationLinkUIResource] ManifestNotFoundException thrown while retrieving manifest
        com.atlassian.applinks.spi.manifest.ManifestNotFoundException
        	at com.atlassian.applinks.core.manifest.AppLinksManifestDownloader.download1(AppLinksManifestDownloader.java:197)
        	at com.atlassian.applinks.core.manifest.AppLinksManifestDownloader.access$000(AppLinksManifestDownloader.java:44)
        	at com.atlassian.applinks.core.manifest.AppLinksManifestDownloader$1$1.<init>(AppLinksManifestDownloader.java:86)
        	at com.atlassian.applinks.core.manifest.AppLinksManifestDownloader$1.apply(AppLinksManifestDownloader.java:79)
        	at com.atlassian.applinks.core.manifest.AppLinksManifestDownloader$1.apply(AppLinksManifestDownloader.java:76)
        	at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
        

      Notes

      Caused by https://ecosystem.atlassian.net/browse/SAL-363

      only *.host wildcard type is supported (starts with asterisk).

      Workaround

      Edit the following to use full IP address instead of using wildcard:

      -Dhttp.nonProxyHosts=localhost|192.168.1.186
      

      Fix

      Problem is improved in SAL 3.0.8+. JIRA 7.4.x uses sal-spi-3.1.0.jar

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              klfoong Foong (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: