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

Assets: Accessing objects and object type attributes leads to NullPointerException when Confluence Application Link is removed

      Issue Summary

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Setup an Application Link between Jira and Confluence
      2. Add Attribute of type Confluence to any Object Type
      3. Add an object with a value for this attribute pointing to an existing Confluence page
      4. Shutdown Confluence
      5. Observe the error displayed in display of object and object type attributes:
      6. Go into Administration >> Application >> Jira and delete the application link
      7. Try to open the Object Type Attributes 

      Expected Results

      The error message should be the same or similar as to when Confluence is down

      Actual Results

      • Trying to edit/view any asset object with a link to a Confluence page as well as any object type with such an attribute will lead to error
      • The below exception is thrown in the atlassian-jira.log file:
      2024-03-25 13:02:33,718+0000 http-nio-8080-exec-121 url: /jira/rest/insight/1.0/objecttype/37/attributes; user: admin ERROR admin 782x1689x1 11d5l24 172.29.222.249,172.50.0.2 /rest/insight/1.0/objecttype/37/attributes [c.r.j.p.i.c.w.a.r.exception.mapper.DefaultMapper] Unexpected exception was thrown while processing the requestjava.lang.NullPointerException    at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.documentation.DocumentationAssemblerInJira.assembleDocumentationPageAttribute(DocumentationAssemblerInJira.java:92)    at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.objecttypeattribute.ObjectTypeAttributeAssemblerBase.assembleObjectTypeAttributeEntry(ObjectTypeAttributeAssemblerBase.java:104)    at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.objecttype.ObjectTypeResource.findObjectTypeAttributes(ObjectTypeResource.java:627)    at jdk.internal.reflect.GeneratedMethodAccessor1114.invoke(Unknown Source) 
      • Trying to get the attributes via Rest API using
        GET /rest/assets/{version}/objecttype/\{id}/attributes
        

        also fails with

        "Something went wrong. Contact administrator" 

      Workaround

      To fix the situation you will need to remove the object type attributes, that are pointing to Confluence spaces related to this application link. See Assets: Object no longer available after deleting Confluence application link

       

          Form Name

            [JSDSERVER-15205] Assets: Accessing objects and object type attributes leads to NullPointerException when Confluence Application Link is removed

            There are no comments yet on this issue.

              c8bcca445054 Benjamin Suess
              cpostma@atlassian.com Conny Postma
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: