-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
7.0.2, 7.2.0, 7.4.1, 7.4.3, 7.4.4, 7.4.6, 7.8.3, 7.11.2, 7.19.0, 8.2.2, 7.19.12, 8.5.6, 8.5.14, 8.5.22
-
35
-
Severity 3 - Minor
-
7
-
Issue Summary
Having any space categories will break the recently updated dashbaord macro once you click on the categories tab. From that point if you refresh the page the macro will not be able to render at all.
Steps to Reproduce
- Installed new installation 7.0.2
- Create a new space/s
- Add categories to the spaces: Space Tools > Overview
- Create a page
- Add Recently updated dashboard macro and publish
- Click on the space categories tab of the macro, notice the the following error:
Failed to retrieve updates. Updates could not be retrieved at this time. Please try again later.
- Refresh page - notice the macro will no longer render at all:
Error rendering macro 'recently-updated-dashboard' null
Expected Results
The recently updated macro category tab displays as per normal
Actual Results
Once the recently updated macro category tab has been viewed, the macro is then broken for that user from then on.
The below exception is thrown in the xxxxxxx.log file:
7.0.2
2019-12-20 05:48:23,604 ERROR [http-nio-8090-exec-6] [xhtml.view.macro.ViewMacroMarshaller] handleMacroExecutionException Error rendering macro: recently-updated-dashboard
-- url: /display/TEST/Copy+of+Dashboard | page: 101453153 | traceId: 1d7c14eed5b53830 | userName: username | referer: https://1234.local/pages/resumedraft.action?draftId=101453181&draftShareId=377ef896-bcc7-4149-830e-ad9824d37b60& | action: viewpage
java.lang.NullPointerException
at com.atlassian.confluence.plugins.macros.dashboard.SpaceCategoryName.equals(SpaceCategoryName.java:41)
at com.google.common.collect.Lists.indexOfRandomAccess(Lists.java:1028)
at com.google.common.collect.Lists.indexOfImpl(Lists.java:1006)
at com.google.common.collect.ImmutableList.indexOf(ImmutableList.java:413)
at com.google.common.collect.ImmutableList.contains(ImmutableList.java:423)
at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.SpaceCategoryTab.getSelectedCategory(SpaceCategoryTab.java:163)
at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.SpaceCategoryTab.getQueryParameters(SpaceCategoryTab.java:70)
at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.RecentlyUpdatedContentMacro.execute(RecentlyUpdatedContentMacro.java:93)
at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:51)
at com.atlassian.confluence.macro.V2CompatibilityMacro.execute(V2CompatibilityMacro.java:35)
7.2.0
2020-01-08 10:48:56,101 ERROR [http-nio-8090-exec-4] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : -- referer: https://1234.ccveu.local/ | url: /rest/dashboardmacros/1.0/updates | traceId: d4b31eaed1b79302 | userName: username java.lang.NullPointerException at com.atlassian.confluence.plugins.macros.dashboard.SpaceCategoryName.equals(SpaceCategoryName.java:41) at com.google.common.collect.Lists.indexOfRandomAccess(Lists.java:1028) at com.google.common.collect.Lists.indexOfImpl(Lists.java:1006) at com.google.common.collect.ImmutableList.indexOf(ImmutableList.java:413) at com.google.common.collect.ImmutableList.contains(ImmutableList.java:423) at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.SpaceCategoryTab.getSelectedCategory(SpaceCategoryTab.java:163) at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.SpaceCategoryTab.getQueryParameters(SpaceCategoryTab.java:70) at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.rest.RecentlyUpdatedContentResource.getUpdates(RecentlyUpdatedContentResource.java:114) at com.atlassian.confluence.plugins.macros.dashboard.recentupdates.rest.RecentlyUpdatedContentResource.getUpdatesPost(RecentlyUpdatedContentResource.java:142)
Workaround
- Add a spaces list macro to any page - even a new test page. Configure scope to category
- Go to a page with an affected recently updated dashboard macro and refresh the page
- If it still fails, go the spaces list macro page and filter on the affected category (Best to click on every label to refresh them all)
- Or possibly add another category to a space. This seemed to work on occasion without the need to filter all labels as above.
- Now refresh a page with the affected macro, it should now work.
This somehow triggers a refresh of the categories and the macro should work again.
- relates to
-
CONFCLOUD-70764 Error rendering macro 'recently-updated-dashboard' : null after selecting space categories
-
- Closed
-