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

      1. Create a User Macro (from /admin/usermacros.action)
      2. Enter expression: $pageManager.getPageCount("TST")
      3. Save Macro
      4. 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.

          Form Name

            [CONFSERVER-97878] $pageManager not available in default Velocity context

            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.

            Jordan Anslow added a comment - 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.

              854eef6f5746 Kusal Kithul-Godage
              854eef6f5746 Kusal Kithul-Godage
              Affected customers:
              1 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: