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

       

        1. Assets_Applink_deleted.png
          17 kB
          Conny Postma
        2. Assets_attribute_ConfluenceDown.png
          14 kB
          Conny Postma
        3. Assets_display_Confluencedown.png
          31 kB
          Conny Postma

          Form Name

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

            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 885713 ]
            Marc Dacanay made changes -
            Labels Original: ltsr
            Marc Dacanay made changes -
            Labels New: ltsr
            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Benjamin Suess made changes -
            Fix Version/s New: 5.16.0 [ 107596 ]
            Benjamin Suess made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Benjamin Suess made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Benjamin Suess made changes -
            Assignee New: Benjamin Suess [ c8bcca445054 ]
            Benjamin Suess made changes -
            Status Original: Needs Triage [ 10030 ] New: Short Term Backlog [ 12074 ]
            Conny Postma made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 885713 ]

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

                Created:
                Updated:
                Resolved: