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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.10.5, 12.4
    • Fix Version/s: 12.5
    • Labels:
    • Environment:
      Windows 10 Pro 64 bit, Chrome 83, using a local instance of XWiki 12.4 on MariaDB 10.4, Tomcat 9.0.35
    • Tests:
      Unit
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: