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.

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

            Kusal Kithul-Godage made changes -
            Fix Version/s New: 8.9.5 [ 108923 ]
            Kusal Kithul-Godage made changes -
            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 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Code Check - Static Analysis › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962396 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Setup and upgrade tests, Postgres 14 › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962395 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Main Plugins - Public › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962534 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Main unit and integration tests › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962533 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Cluster Tests, Postgres 16, Java 21 › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962394 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Main Plugins - Content › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962393 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Main Tests (Postgres 16) › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962392 ]
            Kusal Kithul-Godage made changes -
            Remote Link New: This issue links to "R9.1 P1. Baseline › Database Integration Tests › issue-91-CONFSERVER-97878-dedupe (server-syd-bamboo)" [ 962462 ]

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

                Created:
                Updated:
                Resolved: