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

Liferay's Download Servlet does not support range requests for a resource

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.0.6 GA, 6.0.12 EE
    • Fix Version/s: None
    • Component/s: Documents & Media
    • Labels:
      None
    • Environment:
      Tomcat/MySQL/Ubuntu

      Description

      If an HTTP Get request is made to Liferay's download servlet to stream a resource from the document library (e.g. video files), the servlet does not accept range requests.

      The header field definition is:

      =================================
      14.5 Accept-Ranges

      The Accept-Ranges response-header field allows the server to indicate its acceptance of range requests for a resource:

      Accept-Ranges = "Accept-Ranges" ":" acceptable-ranges

      acceptable-ranges = 1#range-unit | "none"

      Origin servers that accept byte-range requests MAY send

      Accept-Ranges: bytes

      but are not required to do so. Clients MAY generate byte-range requests without having received this header for the resource involved.

      Servers that do not accept any kind of range request for a resource MAY send

      Accept-Ranges: none

      to advise the client not to attempt a range request.
      =================================

      The reason this is a problem is because video players (like flowplayer) that allow for content to be stream to mobile devices (like iPhone and iPad) require the server to support range requests.

      What this basically means is that Liferay as it stands will not allow for video streaming to mobile devices.

      I propose that the download servlet be modified to support range requests.

      Thanks,
      -Alaaeldin

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.han Michael Han (Inactive)
              Reporter:
              aelnattar Alaaeldin El-Nattar
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package