Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-19573

in export XML and HTML, race condition that the space is not by 'included' templates causing export XML and HTML to not show space pages.

      Had an issue where Contegix customer could not see the tree list of his pages in XML export.

      The space might not have been set in the code:

      In ExportSpaceAction.java

      public boolean spaceHasPages()
      {        
          return pageManager.getPages(space, false).size() > 0;
      }
      

      The in some instances the 'space' class variable might of not been initalised properly by other 'included' templates.

      To ensure the correct space is always used: The code should look something like this (I think):

      public boolean spaceHasPages()
      {        
          return pageManager.getPages(getSpace(), false).size() > 0;
      }
      

      Hope this helps.

      Regards

      Vincent Choy.

              shaffenden Steve Haffenden (Inactive)
              vchoy Vincent Choy (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: