NullPointerException on Versions & Licenses admin page after upgrading to Jira 10.3.20 / 11.3.5

XMLWordPrintable

    • 10.03
    • 18
    • Severity 2 - Major
    • 522

      Issue Summary

      Navigating to Administration → Applications (/plugins/servlet/applications/versions-licenses) throws a NullPointerException and displays an OOPS page. This occurs because Jira 10.3.20 and 11.3.5 are the first versions where Jira Software and Jira Service Management are published as DC-only apps on the Atlassian Marketplace. UPM attempts to read serverMinBuild/serverMaxBuild from the Marketplace API response, which are now null for DC-only product versions, causing the NPE on auto-unboxing.

      Steps to Reproduce

      1. Upgrade Jira Data Center to version 10.3.20 or 11.3.5
      2. Log in as a Jira administrator
      3. Navigate to Administration → Applications → Versions & Licenses (/plugins/servlet/applications/versions-licenses)

      Expected Results

      The Versions & Licenses page loads successfully, displaying installed application versions and their license details.

      Actual Results

      A 500 error / OOPS page is displayed with the following stack trace:

      java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "io.atlassian.fugue.Option.getOrElse(Object)" is null
      	at com.atlassian.upm.application.rest.representations.ApplicationRepresentationFactoryImpl$4.apply(ApplicationRepresentationFactoryImpl.java:183)
      	at com.atlassian.upm.application.rest.representations.ApplicationRepresentationFactoryImpl.getVersionRep(ApplicationRepresentationFactoryImpl.java:173)
      	at com.atlassian.upm.application.rest.representations.ApplicationRepresentationFactoryImpl.createApplicationRepresentation(ApplicationRepresentationFactoryImpl.java:133)
      	at com.atlassian.upm.application.servlet.ApplicationManagerHandler.getContext(ApplicationManagerHandler.java:124)
      
      

      Workaround

      As a temporary workaround, user can disable Atlassian Marketplace connectivity:

      • Navigate to Manage Apps.
      • Click the Settings link at the bottom of the page.
      • Uncheck the Connect to the Atlassian Marketplace checkbox. This option is enabled by default.
      • Click Apply.

              Assignee:
              Etienne Lacazedieu
              Reporter:
              Shiv Kumar
              Votes:
              48 Vote for this issue
              Watchers:
              56 Start watching this issue

                Created:
                Updated:
                Resolved: