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

      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.

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

              Created:
              Updated:
              Resolved: