-
Bug
-
Resolution: Fixed
-
Low
-
8.9.0, 8.9.4, 9.0.3
-
Severity 3 - Minor
-
-
RtB - Service ops & Tech entropy
Issue Summary
The com.atlassian.confluence.impl.content.DefaultPageManager class was previously available on the default Velocity context. It was available for use by Struts actions and Confluence Macros.
Steps to Reproduce
- Create a User Macro (from /admin/usermacros.action)
- Enter expression: $pageManager.getPageCount("TST")
- Save Macro
- Create page and add/preview Macro
Expected Results
Displays page count for specified space
Actual Results
Expression is unresolved and rendered as is, ie. $pageManager.getPageCount("TST")
Workaround
Marketplace vendors may directly expose any necessary API's by defining them on their Action classes for Struts Actions, or adding them to the rendering context manually for Confluence Macros.
No workaround is available for User Macros defined by administrators.
- split from
-
CONFSERVER-96642 Getting java.lang.NullPointerException after calling pageManager.getPages in user macro
-
- Closed
-
Form Name |
---|
A fix for this issue is available in Confluence Data Center 9.1.0.
Upgrade now or check out the Release Notes to see what other issues are resolved.