Jira ignores -Dupm.pac.disable=true if the offline mode is disabled on the UI

XMLWordPrintable

    • 9.16
    • 1
    • Severity 3 - Minor

      Issue Summary

      Jira will start ignoring -Dupm.pac.disable=true JVM flag if after setting it up you disable the marketplace offline mode through the UI. Even after restarting Jira a few times, without and with the JVM flag, Jira stills ignore it until you manually enable the same mode on the UI once again.

      Some customers have no-internet Jira instances which prevents Jira from rendering the marketplace page in case it's in offline mode, so they won't be able to fix it through the UI.
      This is reproducible on Data Center: YES

      Steps to Reproduce

      1. Set the -Dupm.pac.disable=true flag in the support arguments
      2. Check the manage apps page, which must be in offlinemode.
      3. Disable the offline mode manually on the manage apps page
      4. Even after restarting Jira, with the -Dupm.pac.disable=true flag, the marketplace will remain in online mode.

      Expected Results

      -Dupm.pac.disable=true overwrites the UI settings.

      Actual Results

      Even after restarting Jira, with the -Dupm.pac.disable=true flag, the marketplace will remain in online mode.
      The below exception is thrown in the xxxxxxx.log file:
      For customers with no-internet Jira instances, the manage apps page will not render and will throw the error below in catalina.out:
      16-Sep-2024 11:46:51.000 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8080-exec-14] (id=[34]) has been active for [128,405] milliseconds (since [9/16/24 11:44 AM]) to serve the same request for https://jira.xxx-xxx.xxx.xxx/plugins/servlet/applications/versions-licenses and may be stuck (configured threshold for this StuckThreadDetectionValve is [120] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.

      Workaround

      If your Jira instance has access to the internet, just enable the offline mode through the Manage apps page once again

      If not, the manage apps page won't render anymore and currently there are no workarounds.

            Assignee:
            Unassigned
            Reporter:
            Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: