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.

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              vchoy Vincent Choy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: