Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-80300

Error while fetching page properties report data when a page is set to be a space's home page

XMLWordPrintable

      Issue Summary

      A page with a working Page Properties Report macro will fail to load when the page is set as Space Home Page. The same macro will load successfully if the page is not set to be the Space's Home Page.

      Steps to Reproduce

      1. Create a page with a Page Properties Report macro, do not set this to be the space's home page yet.
      2. Save the page and verify the page properties report macro loads as expected.
      3. Edit the Space Details for the Space and set the new page as Space Home Page.
      4. Navigate to the Space's home page (https://<YOUR_SITE>.atlassian.net/wiki/spaces/<SPACEKEY>/overview) to reload your page.

      Expected Results

      Page properties report macro contents should continue to load successfully as they did before the page was designated to be the space's home page.

      Actual Results

      The page properties report macro will return an "Error while fetching page properties report data" error upon reloading the page or navigating to the space and being redirected to the home page. 

      An examination of the failing requests (Error 404 "not found") will show that the "contentId" field is set to "undefined":

      https://yoursite.atlassian.net/wiki/rest/masterdetail/1.0/detailssummary/lines?pageSize=30&pageIndex=0&cql=label%20%3D%20%22some-status-label%22&spaceKey=SPACE&contentId=undefined&headings=Status%2CGTIC%20Ready%2CTarget%20PA%20Complete=false&countLikes=false&sortBy=Title&reverseSort=&_r=9999999999999 

      Workaround

      According to Adaptavist, the Page Property Report macro is not to not work normally when you embed it inside the Tabs Group macro (https://docs.adaptavist.com/tabs4c/latest/use-the-tabs-macro):

      In the space home page in question, cutting the embedded Page Property Report macros that are failing out of the Tab Group macro and pasting them directly onto the page will work as expected.

      One possible application of this would be to cut each Page Property Report macro that is currently embedded in a Tab Group out of the Tab Group and past them directly on the page under a heading which is named the same as the Tab Group they came from. This will then allow you to embed a Table of Contents macro at the top of the page that will help illustrate the sections navigate to them easily. 

      Additional Workaround - do not make pages that have Tab Groups with embedded Page Property Report macros your space home page

      The Tab Group macro may work with embedded Page Property Report macros in them as long as the page they are on is not the space's home page; it has been observed that setting another page as Space Home Page will make the Page Properties Report to work again. 

       

      Note: If the page is edited and saved, upon first load of the page after these actions the macro will appear to load successfully, however upon subsequent reloads it will error out in the same manner again. 

              Unassigned Unassigned
              asmith4@atlassian.com Andrew S (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: