Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-134773

Cannot export Wiki to PDF using LibreOffice

Details

    Description

      When a user is trying to export the Wiki page as PDF from the Asset Publisher nothing is exported and an error is logged in the log file:

      2021-06-17 17:45:13,646 WARN [MVCPortlet:312] No render mappings found for MVC render command name "/wiki/export_page" for portlet com_liferay_wiki_web_portlet_WikiPortlet
      2021-06-17 17:45:13,649 ERROR [MVCPortlet:592] null is not a valid include

      The origin of the problem is that the Wiki portlet has an MVC action command for the export, but there is no MVC render command that corresponds to "/wiki/export_page".

      Steps to reproduce:
      1) Have OpenOffice installed on the machine where Liferay DXP is running.
      2) Start headless OpenOffice using this command

      soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard

      3) Start Liferay DXP
      4) Enable OpenOffice conversion in Control Panel → Server Administration → External Services (on master it was moved to System Settings)
      5) Place a Wiki portlet on a page and add a Wiki page.
      6) Have a page with the Asset Publisher portlet
      7) Configure the Asset Published to show Wiki pages and in Display Settings enable conversion to PDF.
      8) Click on the Wiki page to see the details. There should be a hyperlink PDF.
      9) Click on the hyperlink PDF and watch Liferay's log file.
      Expected Results: No error, successful conversion
      Actual Results: Error in logs, no conversion:

      2021-06-17 17:45:13,646 WARN [MVCPortlet:312] No render mappings found for MVC render command name "/wiki/export_page" for portlet com_liferay_wiki_web_portlet_WikiPortlet
      2021-06-17 17:45:13,649 ERROR [MVCPortlet:592] null is not a valid include
      

      The origin of the problem is that the Wiki portlet has an MVC action command for the export, but there is no MVC render command that corresponds to "/wiki/export_page".

      Attachments

        Activity

          People

            jeremy.chen Jeremy Chen
            istvan.dezsi Istvan Dezsi
            Kiyoshi Lee Kiyoshi Lee
            Istvan Dezsi Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 21 weeks, 2 days ago

              Packages

                Version Package
                7.0.0 DXP FP102
                7.0.10.16 DXP SP17
                7.0.X
                7.1.10 DXP FP26
                7.1.10.7 SP7
                7.1.X
                7.2.10 DXP FP15
                7.2.X
                7.3.10.3 DXP SP3
                7.3.X
                7.4.2 CE GA3 DXP 7,4
                7.4.13 DXP GA1
                Master