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

LAR file larger than 4GB is broken, and only part of it is downloading

    Details

      Description

      Reproduction steps:

      1.) Use ee-6.2.x , or latest bundle

      2.) Go to the Site Administration --> Content --> Documents and Media, upload more than 4 gigabytes of data

      3.) After the upload has finished got to Pages --> Site Pages, here perform an export for the site.

      If you click on the .lar file the actual file that is downloaded is smaller that the value shown in the table (in my case the file was 620 megabyte and in the table it is 4.6 gigabyte )

      In ServletResponseUtil

      public static void write(
      	HttpServletResponse response, InputStream inputStream,
      	long contentLength)
              .
              .
              .
              if (contentLength > 0) {
      	        response.setContentLength((int)contentLength);
              }
      

      If the contentLength value exceeds int maximum value, contentLength will be the remainder in the response.

      On master this has been fixed by LPS-16196

        Attachments

        1. fixed.png
          fixed.png
          45 kB
        2. reproduced.png
          reproduced.png
          48 kB

          Issue Links

            Activity

              People

              • Assignee:
                hong.zhao Hong Zhao
                Reporter:
                zsolt.olah Zsolt Oláh (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 5 weeks ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE