-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 8.5.22, 9.2.7, 10.1.1, 9.2.10
-
Component/s: Content - Page, Macros - Other Macros
-
None
-
1
-
Severity 3 - Minor
Issue Summary
Viewing old versions of the page displays an error message related to Children macro when faster permission is enabled
Steps to Reproduce
1. Setup Confluence 9.2.7
2. Create a parent page and add children display macro
3. Create two child pages
4. Modify the parent page
5. Enable Faster permissions service
6. Go to page versions and check previous versions
Expected Results
Viewing old page versions page shouldn’t display any error.
Actual Results
The below is thrown in the UI.
Error rendering macro 'children' Cannot invoke "com.atlassian.confluence.spaces.Space.getId()" because "space" is null
The below exception is thrown in the atlassian.confluence.log file:
referer: https://linux-114427.prod.atl-cd.net/confluence/pages/viewpage.action?pageId=393240| traceId: 2127fe388b5e2345 | userName: admin | action: viewpage | url: /pages/viewpage.action java.lang.NullPointerException: Cannot invoke "com.atlassian.confluence.spaces.Space.getId()" because "space" is null at com.atlassian.confluence.plugins.macros.advanced.BulkPermissionHelper.getAllDescendants(BulkPermissionHelper.java:177) at com.atlassian.confluence.plugins.macros.advanced.xhtml.ChildrenMacro$Helper.getChildrenFromPage(ChildrenMacro.java:470)
Workaround
Disabling faster permission removes the error