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

Local publishing of pdf preview s failed


    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.0.6 CE GA7, 7.0.X, 7.1.X, 7.2.X
    • Fix Version/s: 7.1.X, 7.2.X, Master
    • Component/s: Staging
    • Labels:


      The local staging process for pdf documents does not handle previews as expected

      Steps to reproduce:

      • create a webcontent showing a pdf document
      • publish the page from staging to live (with all referenced documents)
      • -> the page with the web content and the document will be available on live
      • publish the page again (without changing the document)
      • -> the previews of the document are no longer available on live.

      The problem is in PDFProcessorImpl.

      The publishing of generated files has two steps:

      1. delet all generate files on live
      2. copy the generated files from staging  to live

      The export method does not set any attributes if a direct binary import was detetcted. On the other side, the import method does nothing if the number of preview images was not available as an attribute.  This has no impact on the first publication, because the previews will be generated after adding the document. But in further steps, the import function will ony delete the previews.

      Note: The thumbnail function works as expected.

      See PDFProcessortImpl.importPreview.  It does not decide between direct binary exports and lar export. If a binary export was detected the method must get the number of previews from the original document instead of doing nothing.








            • Assignee:
              joyce.wang Joyce Wang
              jgorny Jürgen Gorny
              Participants of an Issue:
              Recent user:
              Joyce Wang
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created:
                Days since last comment:
                35 weeks, 4 days ago


                Version Package