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

PDF uploads to Documents and Media cause Tomcat logs to appear in console

    Details

      Description

      Reproduction Steps:

      1. Go to Documents and Media app
      2. Add a New File Upload
      3. Choose File > use the attached test.pdf
      4. Click Publish

      Result:

      The pdf is uploaded successfully, but the following log (likely with different file paths) appears in the tomcat console. I tried uploading other documents besides test.pdf and they produced the same result.

      Loading jar:file:/home/matt/repos/lfrgs-liferay-damage-control/build/exported-standalone-bundle/tomcat/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Jan 15, 2020 11:10:51 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Detected server tomcat
      [dxp] INFO  [main][PropsUtil:385] Global shared lib directory /home/matt/repos/lfrgs-liferay-damage-control/build/exported-standalone-bundle/tomcat/lib/
      [dxp] INFO  [main][PropsUtil:396] Global lib directory /home/matt/repos/lfrgs-liferay-damage-control/build/exported-standalone-bundle/tomcat/lib/ext/
      [dxp] INFO  [main][PropsUtil:419] Portal lib directory /home/matt/repos/lfrgs-liferay-damage-control/build/exported-standalone-bundle/tomcat/webapps/ROOT/WEB-INF/lib/
      Loading jar:file:/home/matt/repos/lfrgs-liferay-damage-control/build/exported-standalone-bundle/tomcat/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      

      Expected:
      Fewer logs should appear when adding pdfs.

      Context:

      Liferay is using a third party extension, PDFBox, to process the pdf and generate a preview image of it. It seems like part of the initial Liferay startup code gets retriggered when this happens, and text containing information about the jars and PropsUtil are outputted again.

      Reproduced In:
      7.2.0 GA1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              matthew.chan Matthew Chan (Inactive)
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 40 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.1 CE GA2
                  7.3.10 DXP GA1
                  Master