Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-16245

Accessing a saved filter that contains Assets object value with both its label and object key could result in an error page with NullPointerException

      Issue Summary

      Accessing a saved filter that contains Assets object value with both its label and object key could result in an error page with error "java.lang.NullPointerException: Cannot invoke "com.riadalabs.jira.plugins.insight.services.model.ObjectBean.getLabel()" because "objectBean" is null"

      Steps to Reproduce

      1. Use the advanced search to search for issues with a specific Assets object on the Assets custom field with the auto-complete suggestions. An example JQL looks like this.
        project = "ITSM" and "Affected Server" = "exchange.prod.app1 (ASITSM-1)" 
        
      2. Save the filter.
      3. Create and save another filter using basic search to search with the same criteria. After selecting the fields and switching to advanced search, the JQL would look like this. Note that the object value has only the object key on it.
        project = "ITSM" and "Affected Server" = ASITSM-1
        
      4. Access both filters by either copying the URL and opening in a new tab, refreshing the same page (<baseURL>/issues/?filter=id) or via Issues (top menu bar) > Manage filters.

      Expected Results

      Both filters can be accessed without any error

      Actual Results

      The filter takes a long while to load and eventually fails with an error page as shown below. Error java.lang.NullPointerException: Cannot invoke "com.riadalabs.jira.plugins.insight.services.model.ObjectBean.getLabel()" because "objectBean" is null can be seen.

      Accessing the affected filter on the issue navigator directly works fine.

      Workaround

      Edit the saved filter to use only object key for the Assets custom field, or rebuild the JQL using basic search and ensure that the format of the Assets custom field and its value is as shown below.

      "custom_field_name" = object_key
      

      For example,

      "Affected Server" = ITSM-1
      

      Versions Tested

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 10.5.1 Yes
      Most Recent Bug-Fix Release    
      Previous Major Release    
      Most Recent LTS 10.3.5  No 
      Previous Supported LTS    

            [JSDSERVER-16245] Accessing a saved filter that contains Assets object value with both its label and object key could result in an error page with NullPointerException

            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 2 New: 3
            SET Analytics Bot made changes -
            UIS Original: 1 New: 2
            Jira Server Release Automation Bot[ADM-107524] made changes -
            Fix Version/s Original: 10.7.1 [ 112593 ]
            Fix Version/s New: 10.7.2 [ 113126 ]
            Luke Ellis made changes -
            Fix Version/s New: 10.7.1 [ 112593 ]
            Fix Version/s New: 11.0.0 [ 111000 ]
            Luke Ellis made changes -
            Status Original: In Review [ 10051 ] New: Waiting for Release [ 12075 ]
            Luke Ellis made changes -
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]
            Luke Ellis made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Luke Ellis made changes -
            Assignee New: Luke Ellis [ cfd0dcced0d7 ]
            SET Analytics Bot made changes -
            UIS New: 1

              cfd0dcced0d7 Luke Ellis
              michin Michelle Chin
              Affected customers:
              2 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: