We couldn't load all Actvitity tabs. Refresh the page to try again.
If the problem persists, contact your Jira admin.
IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15373

Assets object deletion fails when inbound reference object is archived

      Problem

      When attempting to delete an object it fails with a nullpoint exception pointing to a permissions error:

      2024-06-18 10:19:20,495+0000 http-nio-8080-exec-19 url: /rest/insight-am/1/assets/TEST-3; user: admin ERROR admin 619x1520x1 sie8bb 172.29.220.37,10.229.141.123 /rest/insight-am/1/assets/TEST-3 [c.r.j.p.i.services.util.ServiceUtil] RuntimeException:null
      java.lang.NullPointerException
              at com.riadalabs.jira.plugins.insight.services.permission.InsightPermissionServiceImpl.hasInsightObjectDeleteReferencesPermission(InsightPermissionServiceImpl.java:272)
              at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.lambda$checkObjectDeletePermission$16(DefaultInsightPermissionsChecker.java:222)
              at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.checkPermission(DefaultInsightPermissionsChecker.java:124)
              at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.checkPermission(DefaultInsightPermissionsChecker.java:111)
              at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.checkObjectDeletePermission(DefaultInsightPermissionsChecker.java:222)
              at com.riadalabs.jira.plugins.insight.services.core.ObjectServiceImpl.deleteObject(ObjectServiceImpl.java:1509)
      

      Environment

      .
      Jira 9.15.2

      Steps to Reproduce

      Expected Results

      Deletion of the object, or a warning asking to remote the reference

      Actual Results

      Workaround

       

      1. Restore the archived object
      2. Remove the inbound reference 
      3. Delete the object
      4. (optional) archive the object again

      Notes

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            Uploaded image for project: 'Jira Service Management Data Center'
            1. Jira Service Management Data Center
            2. JSDSERVER-15373

            Assets object deletion fails when inbound reference object is archived

                Problem

                When attempting to delete an object it fails with a nullpoint exception pointing to a permissions error:

                2024-06-18 10:19:20,495+0000 http-nio-8080-exec-19 url: /rest/insight-am/1/assets/TEST-3; user: admin ERROR admin 619x1520x1 sie8bb 172.29.220.37,10.229.141.123 /rest/insight-am/1/assets/TEST-3 [c.r.j.p.i.services.util.ServiceUtil] RuntimeException:null
                java.lang.NullPointerException
                        at com.riadalabs.jira.plugins.insight.services.permission.InsightPermissionServiceImpl.hasInsightObjectDeleteReferencesPermission(InsightPermissionServiceImpl.java:272)
                        at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.lambda$checkObjectDeletePermission$16(DefaultInsightPermissionsChecker.java:222)
                        at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.checkPermission(DefaultInsightPermissionsChecker.java:124)
                        at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.checkPermission(DefaultInsightPermissionsChecker.java:111)
                        at com.riadalabs.jira.plugins.insight.services.permission.DefaultInsightPermissionsChecker.checkObjectDeletePermission(DefaultInsightPermissionsChecker.java:222)
                        at com.riadalabs.jira.plugins.insight.services.core.ObjectServiceImpl.deleteObject(ObjectServiceImpl.java:1509)
                

                Environment

                .
                Jira 9.15.2

                Steps to Reproduce

                Expected Results

                Deletion of the object, or a warning asking to remote the reference

                Actual Results

                Workaround

                 

                1. Restore the archived object
                2. Remove the inbound reference 
                3. Delete the object
                4. (optional) archive the object again

                Notes

                        12fbc3c722fa Christopher Bowles
                        e295eb0fd866 ssoto
                        Votes:
                        1 Vote for this issue
                        Watchers:
                        6 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                              12fbc3c722fa Christopher Bowles
                              e295eb0fd866 ssoto
                              Affected customers:
                              1 This affects my team
                              Watchers:
                              6 Start watching this issue

                                Created:
                                Updated:
                                Resolved: