-
Bug
-
Resolution: Fixed
-
Low
-
4.15, 5.4.10, 5.14.2
-
None
-
Severity 3 - Minor
-
Issue Summary
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Setup an Application Link between Jira and Confluence
- Add Attribute of type Confluence to any Object Type
- Add an object with a value for this attribute pointing to an existing Confluence page
- Shutdown Confluence
- Observe the error displayed in display of object and object type attributes:
- Go into Administration >> Application >> Jira and delete the application link
- 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 |
---|