Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17448

Cannot export pages after 'All pages' is re-selected on the 'Select from:' drop-down

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.5
    • 11.10.5, 12.4
    • Windows 10 Pro 64 bit, Chrome 83, using a local instance of XWiki 12.4 on MariaDB 10.4, Tomcat 9.0.35
    • Unit
    • Medium
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Login with Admin
      2. Go to a page (non terminal)
      3. Click 'More actions > Export'
      4. Click on 'Other Formats'
      5. From 'Select the pages to export:' drop-down select 'Created pages' or 'Created and modified pages'
      6. Select back 'All pages' from the drop-down
      7. Click 'Export as XAR' or 'Export as HTML'

      EXPECTED RESULTS

      The page is exported as XAR/ HTML (or the 'Save As' download box is displayed, depending on browser's settings).

      ACTUAL RESULTS

      Nothing happens when clicking 'Export as XAR' or 'Export as HTML' buttons after 'All pages' is selected again from the drop-down.

      The following error is displayed in browser's console:

      exporter.js?cache-version=1590492458000:1 Uncaught TypeError: Cannot read property 'type' of undefined
          at j (exporter.js?cache-version=1590492458000:1)
          at a.jstree.plugins.contextmenu.getExportPages (exporter.js?cache-version=1590492458000:1)
          at b (exporter.js?cache-version=1590492458000:3)
          at HTMLAnchorElement.<anonymous> (exporter.js?cache-version=1590492458000:3)
          at HTMLAnchorElement.dispatch (jquery.js:4737)
          at HTMLAnchorElement.r.handle (jquery.js:4549)

      The issue could be reproduced also on XWiki 11.10.5, and 12.3.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: