Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28093

Make download service deal with HEAD efficiently

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF15, 11.1
    • Component/s: Web Common
    • Release Notes Summary:
      The download service responds to a HEAD request with a better efficiency.
    • Tags:
    • Backlog priority:
      500
    • Sprint:
      nxFG 11.1.10
    • Story Points:
      2

      Description

      Currently a HEAD on a file download request is treated by the default servlet implementation, which consumes and throws out all the body just to compute a content-length (javax.servlet.http.HttpServlet.doHead and javax.servlet.http.NoBodyResponse.NoBodyResponse).

      We can do better in the Nuxeo download service itself to avoid reading any bytes from the blob, which has a non-negligible cost especially if it's in S3 or similar.

      Note that for CMIS this is already dealt with explicitly by the Chemistry framework, but this has to be refactored by NXP-27337.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.