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

Verify Document Library checking every entry in DLFileEntry for mimeType

    Details

      Description

      Description
      During the checkMimeTypes part of VerifyDocumentLibrary we check each file entry for it's mimeType, causing the verify process to take an extended amount of time with a large amount of data.

      Steps to reproduce
      0. set in portal-ext.properties to allow for large file uploads.

      dl.file.max.size=0
      com.liferay.portal.upload.UploadServletRequestImpl.max.size=10485760000
      

      1. Add a large file to document library (I used a 1gig zip file)
      2. stop server and add to portal-ext.properties

      verify.frequency=-1
      

      3. Start the server again

      Expected Results
      VerifyDocumentLibrary does not check mimeType of a zip file

      Actual Results
      VerifyDocumentLibrary checks the mimeType of all entries in DLFileEntry

      Tested On
      Master: 8b50a9d1daeba13ad7da6b69ee21772289edcfa9

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              samuel.ziemer Sam Ziemer
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 16 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M3