NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Back in CONF-38939, a change was made to improve performance of rebuilding the ancestors table. Unfortunately, that change also reversed the original order of the records in that table.

      Originally, all ancestors of a page were sorted by the order from Space home page down to its intermediate parent page. Since CONF-38939, the new order has been from the intermediate parent page up to Space home page. This reversed order has prevented the code to render page tree in Page Hierarchy (and maybe more) from working correctly.

      This order is enforced in com.atlassian.confluence.pages.ancestors.AncestorRebuildCalculator.storeAncestors()

              List<Long> parentAncestors = storeAncestors(parentId, visited);
      
              List<Long> ancestorList = Lists.newArrayList(parentId);
              ancestorList.addAll(parentAncestors);
      

            [CONFSERVER-41411] Rebuilding ancestors table is returning an inverse order

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2894825 ] New: CONFSERVER Bug Workflow v4 [ 2985735 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2781455 ] New: JAC Bug Workflow v3 [ 2894825 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2709480 ] New: JAC Bug Workflow v2 [ 2781455 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392045 ] New: JAC Bug Workflow [ 2709480 ]
            Rachel Robins made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 349269 ]
            Rachel Robins made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 324542 ]
            Rachel Robins made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 324542 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2272710 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392045 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2223131 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2272710 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2173571 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2223131 ]

              nhdang Nhan Dang
              nhdang Nhan Dang
              Affected customers:
              1 This affects my team
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: