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

WebServerServlet does not always support range HTTP header

    Details

      Description

      The range header is not support by the WebServerServlet. This will cause problems on certain browsers which require the range header in order to download only certain bytes within a given document. This is specified in the HTTP spec in sections 3.12 and 14.35.

      In particular, this is used by iOS devices which may attempt to pseudo-stream Quicktime movies (the file has to be properly encoded for iOS devices and for pseudo-streaming). Testing can be done against the attached file, originally obtained from Apple's Knowledge Base. To test:

      1. Unzip the attached video file.
      2. Configure Liferay to allow uploads of over 4MB.
      3. Go to Control Panel > Documents and Media.
      4. Upload the unzipped version of the video file (the .m4v file).
      5. On an iOS device, navigate to this movie file and click the download link and you will not be able to display the video (see Screenshot).

      Code for HTTP range header can be found in LPS-22759, but needs to be applied more universally.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              paul.piao Paul Piao (Inactive)
              Reporter:
              caorongjin Alexander Chow (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 20 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2