-
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
-
[CONFSERVER-97878] $pageManager not available in default Velocity context
Fix Version/s | New: 8.9.5 [ 108923 ] |
Affects Version/s | Original: 8.5.13 [ 108956 ] | |
Affects Version/s | Original: 8.5.14 [ 108954 ] | |
Affects Version/s | Original: 7.19.25 [ 108599 ] | |
Affects Version/s | New: 8.9.4 [ 108620 ] |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Code Check - Static Analysis › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Setup and upgrade tests, Postgres 14 › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Main Plugins - Public › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Main unit and integration tests › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Cluster Tests, Postgres 16, Java 21 › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Main Plugins - Content › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Main Tests (Postgres 16) › issue-91- |
Remote Link |
New:
This issue links to "R9.1 P1. Baseline › Database Integration Tests › issue-91- |